Exemplo n.º 1
0
        public void ResetToggleMainMenu(ProjectConstants.Scenes scene)
        {
            switch (scene)
            {
            case ProjectConstants.Scenes.HomeUI:
                if (btns [0].value != true)
                {
                    btns [0].Set(true);
                }
                break;

            case ProjectConstants.Scenes.JoinRoom:
                if (btns [1].value != true)
                {
                    btns [1].Set(true);
                }
                break;

            case ProjectConstants.Scenes.SongList:
                if (btns [2].value != true)
                {
                    btns [2].Set(true);
                }
                break;

            case ProjectConstants.Scenes.AchievementListUI:
                if (btns [3].value != true)
                {
                    btns [3].Set(true);
                }
                break;

            case ProjectConstants.Scenes.SettingUI:
                if (btns [4].value != true)
                {
                    btns [4].Set(true);
                }
                break;

            default:
                break;
            }
        }
Exemplo n.º 2
0
 private void OnSceneChange(ProjectConstants.Scenes scene)
 {
     anmController.SetTrigger("hidetoleft");
 }