public override void OnQuery_SELECT_ROOM()
 {
     if (GameSceneEvent.current != null)
     {
         object userData = GameSceneEvent.current.userData;
         if (userData != null)
         {
             StringBuilder stringBuilder = new StringBuilder();
             stringBuilder.Append(MonoBehaviourSingleton <PartyManager> .I.partys[(int)userData].partyNumber);
             stringBuilder.Append("_");
             stringBuilder.Append(PartyManager.GenerateToken());
             PlayerPrefs.SetString("im", stringBuilder.ToString());
         }
     }
     GameSceneEvent.Cancel();
     BackToHome();
 }
Beispiel #2
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);
            }
        }
    }
Beispiel #3
0
 protected static void CancelEventAndBackSection()
 {
     GameSceneEvent.Cancel();
     MonoBehaviourSingleton <GameSceneManager> .I.ChangeSectionBack();
 }