public static Scene.Type GetCurrentStageType() { AStage aStage = StageSystem._stack.Peek(); if (aStage == null) { return(Scene.Type.EMPTY); } return(aStage.SceneType()); }
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); }