Пример #1
0
    protected static void ResumeEvent(bool is_resume, object userData = null)
    {
        if (is_resume)
        {
            GameSceneEvent.Resume(userData);
        }
        else
        {
            GameSceneEvent.Cancel();
            GameSection currentSection = MonoBehaviourSingleton <GameSceneManager> .I.GetCurrentSection();

            if (currentSection != null && currentSection.isClose)
            {
                currentSection.Open(UITransition.TYPE.OPEN);
            }
        }
    }