public void RegisterCharacter(BaseNetworkGameCharacter character)
 {
     if (character == null || Characters.Contains(character))
     {
         return;
     }
     character.RegisterNetworkGameManager(this);
     Characters.Add(character);
 }
 public void RegisterCharacter(BaseNetworkGameCharacter character, string deviceUniqueIdentifier = "")
 {
     if (character == null || Characters.Contains(character))
     {
         return;
     }
     character.RegisterNetworkGameManager(this);
     Characters.Add(character);
     if (!string.IsNullOrEmpty(deviceUniqueIdentifier))
     {
         PlayerCharacterObjectIds[deviceUniqueIdentifier] = character.ObjectId;
         NetworkGameScore gameScore;
         if (!doNotKeepPlayerScore && PlayerScores.TryGetValue(deviceUniqueIdentifier, out gameScore))
         {
             character.score       = gameScore.score;
             character.killCount   = gameScore.killCount;
             character.assistCount = gameScore.assistCount;
             character.dieCount    = gameScore.dieCount;
         }
     }
 }