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 }); }
public static void InsertPush(AStage astg) { TsLog.Log("=== StageSystem.PushStageSwap TOPSWAP: {0} / {1}", new object[] { StageSystem._stack.Peek().GetType().Name, astg.GetType().Name }); AStage t = StageSystem._stack.Pop(); StageSystem._stack.Push(astg); StageSystem._stack.Push(t); }
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); }