示例#1
0
 /// <summary>
 ///
 /// </summary>
 void SlowLoop()
 {
     RemotePlayerName = photonView.Owner.NickName;
     RemoteTeam       = photonView.Owner.GetPlayerTeam();
     gameObject.name  = RemotePlayerName;
     if (DrawName != null)
     {
         DrawName.SetName(RemotePlayerName);
     }
     isFriend = (RemoteTeam == PhotonNetwork.LocalPlayer.GetPlayerTeam());
 }
 public void Init()
 {
     InvokeRepeating("UpdateList", 0, UpdatePlayerEach);
     DrawName.SetName(AIName);
     if (!isOneTeamMode && bl_GameManager.Instance.OurPlayer != null && !death)
     {
         DrawName.enabled = bl_GameManager.Instance.LocalPlayerTeam == AITeam;
     }
     else
     {
         DrawName.enabled = false;
     }
 }