Пример #1
0
 public MainMenuState(SceneStateControl controller) : base("02MainMenuState", controller)
 {
 }
Пример #2
0
    //private GameFacade m_Facade; //外观模式的引用

    public BattleState(SceneStateControl controller) : base("03BattleState", controller)
    {
    }
Пример #3
0
 void Start()
 {
     controller = new SceneStateControl();
     //不加载场景,因为当前就是StartState场景
     controller.SetState(new StartState(controller), false);
 }
Пример #4
0
    protected SceneStateControl m_controller;           //状态拥有者


    public ISceneState(string sceneName, SceneStateControl controller)
    {
        m_SceneName  = sceneName;
        m_controller = controller;
    }
Пример #5
0
 //本类构造方法 并调用基类的构造方法
 public StartState(SceneStateControl controller) : base("01StartState", controller)
 {
 }