Beispiel #1
0
        //ゲームの開始、終了、ロード時などのクリア処理
        void ClearSub(bool isStopSound)
        {
            Page.Clear();
            SelectionManager.Clear();
            BacklogManager.Clear();
            GraphicManager.Clear();
            GraphicManager.gameObject.SetActive(true);
            if (UiManager != null)
            {
                UiManager.Close();
            }

            ClearCustomCommand();
            ScenarioPlayer.Clear();
            if (isStopSound && SoundManager != null)
            {
                SoundManager.StopBgm();
                SoundManager.StopAmbience();
            }

            if (MessageWindowManager == null)
            {
                Debug.LogError("MessageWindowManager is Missing");
            }
            SaveManager.GetSaveIoListCreateIfMissing(this).ForEach(x => ((IAdvSaveData)x).OnClear());
            SaveManager.CustomSaveDataIOList.ForEach(x => ((IAdvSaveData)x).OnClear());
            OnClear.Invoke(this);
        }
 public void Clear()
 {
     Page.Clear();
     SelectionManager.Clear();
     BacklogManager.Clear();
     GraphicManager.Clear();
     TransitionManager.Clear();
     if (UiManager != null)
     {
         UiManager.Close();
     }
     SoundManager.StopBgm();
     SoundManager.StopAmbience();
     ClearCustomCommand();
     ScenarioPlayer.Clear();
 }