Пример #1
0
 private void Start(NETWORKSTATE state)
 {
     curState = stateDict[state];
     if (curState != null)
     {
         curState.Enter();
     }
     GDebug.Log("NetWorkStateManager Start : " + state);
 }
Пример #2
0
 public void ChangeState(NETWORKSTATE state)
 {
     if (curState != null && curState.netState != state)
     {
         curState.Exit();
         curState = stateDict[state];
         if (curState != null)
         {
             curState.Enter();
         }
         NetWorkConnection.Instance.ChangeNetState(state);
     }
 }
Пример #3
0
 private void AddState(NetBaseState state)
 {
     stateDict[state.netState] = state;
 }