예제 #1
0
 /// <summary>
 /// 移除队员
 /// </summary>
 /// <param name="teamPlayer"></param>
 public void RemoveTeamPlayer(TeamPlayer teamPlayer)
 {
     try
     {
         teamPlayers.Remove(teamPlayer);
     }
     catch (Exception e)
     {
         GameManager.Instance.LogError(e.Message);
     }
 }
예제 #2
0
 public void Copy(TeamPlayer teamPlayer)
 {
     name      = teamPlayer.Name;
     teamColor = teamPlayer.teamColor;
     belongsTo = teamPlayer.belongsTo;
 }
예제 #3
0
 /// <summary>
 /// 添加队员
 /// </summary>
 /// <param name="teamPlayer"></param>
 public void AddTeamPlayer(TeamPlayer teamPlayer)
 {
     teamPlayers.Add(teamPlayer);
     teamPlayer.Index     = teamPlayers.Count - 1;
     teamPlayer.belongsTo = this;
 }