Пример #1
0
 //----------------------------------------------------------------------------
 protected override void OnStateInit()
 {
     AddSubState(GameStateFactory.CreateState(GameStateType.GST_Loading, this));
     AddSubState(GameStateFactory.CreateState(GameStateType.GST_Login, this));
     AddSubState(GameStateFactory.CreateState(GameStateType.GST_Update, this));
     AddSubState(GameStateFactory.CreateState(GameStateType.GST_Logo, this));
     AddSubState(GameStateFactory.CreateState(GameStateType.GST_Lobby, this));
     base.OnStateInit();
     SetSubState((int)GameStateType.GST_Logo, null);
 }