2023-08-22 19:08:45 +08:00
|
|
|
using Framework;
|
|
|
|
|
using Gameplay;
|
|
|
|
|
using Gameplay.SubSystems;
|
2024-01-19 17:03:07 +08:00
|
|
|
using UnityEngine.SceneManagement;
|
2023-08-22 19:08:45 +08:00
|
|
|
|
2023-10-19 15:00:19 +08:00
|
|
|
public class GameStateMainScene : IState
|
2023-08-22 19:08:45 +08:00
|
|
|
{
|
|
|
|
|
public void OnEnter()
|
|
|
|
|
{
|
2024-02-04 13:08:20 +08:00
|
|
|
LoadingExecutorManager.Instance.ExecuteLoading(new MainSceneLoadingExecutor());
|
2023-10-19 15:00:19 +08:00
|
|
|
#if SDK_TAPTAP
|
|
|
|
|
var antiAddictionService = SDKManager.Instance.GetSdkHelper(SDKManager.SdkName.TapTap) as IAntiAddictionService;
|
|
|
|
|
antiAddictionService?.AntiAddictionEnterGame();
|
|
|
|
|
#endif
|
2023-08-22 19:08:45 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void OnUpdate(float deltaTime)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2024-02-22 12:46:45 +08:00
|
|
|
public void OnExit()
|
2023-08-22 19:08:45 +08:00
|
|
|
{
|
2024-04-10 16:20:58 +08:00
|
|
|
//CommonUtils.CloseUIWithScene(UINameConst.UI_MainPanel);
|
2023-08-22 19:08:45 +08:00
|
|
|
}
|
|
|
|
|
}
|