|
@@ -12,7 +12,7 @@ public class HomeMgr : MonoBehaviour
|
|
|
{
|
|
{
|
|
|
ins = this;
|
|
ins = this;
|
|
|
PersistenHandler.Init();
|
|
PersistenHandler.Init();
|
|
|
- //ViewMgr.Instance.ShowView<TopBarView>();
|
|
|
|
|
|
|
+ ViewMgr.Instance.ShowView<TopBarView>();
|
|
|
ViewMgr.Instance.ShowView<HomeView>();
|
|
ViewMgr.Instance.ShowView<HomeView>();
|
|
|
//ViewMgr.Instance.ShowView<HomeFrameView>();
|
|
//ViewMgr.Instance.ShowView<HomeFrameView>();
|
|
|
Instantiate(SceneResourceManager.Instance.GetPrefab("DeviceBatteryView"));
|
|
Instantiate(SceneResourceManager.Instance.GetPrefab("DeviceBatteryView"));
|
|
@@ -42,9 +42,10 @@ public class HomeMgr : MonoBehaviour
|
|
|
if (CommonConfig.StandaloneModeOrPlatformB)
|
|
if (CommonConfig.StandaloneModeOrPlatformB)
|
|
|
{
|
|
{
|
|
|
DoTweenUtil.CallDelay(0.1f, () => new UserPlayer());
|
|
DoTweenUtil.CallDelay(0.1f, () => new UserPlayer());
|
|
|
- StandaloneAPI.InitTimeCounter();
|
|
|
|
|
}
|
|
}
|
|
|
else UserPlayer.ConnectServer();
|
|
else UserPlayer.ConnectServer();
|
|
|
|
|
+
|
|
|
|
|
+ StandaloneAPI.InitTimeCounter();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
void OnDestroy()
|
|
void OnDestroy()
|