示例#1
0
        public void HandleScreenSwitch(BIJ_UI_Screen aScreen, bool isBackCall)
        {
            if (aScreen)
            {
                if (currentScreen)
                {
                    currentScreen.CloseScreen();
                    if (!isBackCall)
                    {
                        screenStack.Push(currentScreen);
                    }
                    //previousScreen = currentScreen;
                }

                currentScreen = aScreen;
                currentScreen.gameObject.SetActive(true);
                currentScreen.StartScreen();
                if (onSwitchedScreen != null)
                {
                    onSwitchedScreen.Invoke();
                }
            }
        }
示例#2
0
 public void SwitchScreen(BIJ_UI_Screen aScreen)
 {
     HandleScreenSwitch(aScreen, false);
 }