コード例 #1
0
ファイル: GameClient.cs プロジェクト: CoderDan1/DansWorld
 /// <summary>
 /// Used to build character sprites from network packets
 /// behavious changes depending on the state of the game client
 /// </summary>
 /// <param name="character">charater to add</param>
 public void AddPlayerCharacter(PlayerCharacter character)
 {
     if (_gameState == GameState.LoggedIn)
     {
         CharacterSelect.AddCharacter(character);
     }
     else if (_gameState == GameState.Playing)
     {
         GameScence.AddCharacter(character);
     }
 }