Exemple #1
0
 public static void ReserveMoveStage(AStage iStg)
 {
     StageSystem._transMode = StageSystem.TransMode.MOVE;
     StageSystem._nxtStg    = iStg;
     iStg.OnPrepareSceneChange();
     TsLog.Log("=== StageSystem.ReserveMoveStage : {0}", new object[]
     {
         StageSystem._nxtStg.GetType().Name
     });
 }
Exemple #2
0
        public static void ReloadStage()
        {
            StageSystem._transMode = StageSystem.TransMode.RELOAD;
            AStage aStage = StageSystem._stack.Peek();

            aStage.OnPrepareSceneChange();
            TsLog.Log("=== StageSystem.ReloadStage POP: {0}", new object[]
            {
                aStage.GetType().Name
            });
        }
Exemple #3
0
 public static void ReservePushStage(AStage iStg)
 {
     if (iStg == null)
     {
         TsLog.LogError("=== StageSystem.ReservePushStage(null) null parameter!", new object[0]);
     }
     else
     {
         StageSystem._nxtStg    = iStg;
         StageSystem._transMode = StageSystem.TransMode.PUSH;
         iStg.OnPrepareSceneChange();
         TsLog.Log("=== StageSystem.ReservePushStage PUSH: {0}", new object[]
         {
             StageSystem._nxtStg.GetType().Name
         });
     }
 }
Exemple #4
0
 public static Scene.Type ReservePopStage()
 {
     Scene.Type result = Scene.Type.EMPTY;
     if (StageSystem._stack.Count <= 1)
     {
         TsLog.LogError("=== StageSystem.ReservePopStage stack empty", new object[0]);
     }
     else
     {
         AStage aStage  = StageSystem._stack.Pop();
         AStage aStage2 = StageSystem._stack.Peek();
         aStage2.OnPrepareSceneChange();
         result = aStage2.SceneType();
         StageSystem._stack.Push(aStage);
         StageSystem._transMode = StageSystem.TransMode.POP;
         TsLog.Log("=== StageSystem.ReservePopStage POP: {0}", new object[]
         {
             aStage.GetType().Name
         });
     }
     return(result);
 }