Beispiel #1
0
 public void PlayerUpdatedEvent(MonoBehaviour sender, PlayerManager.PlayerActivityEventArgs e)
 {
     if (this.viewReady)
     {
         this.m_View.View.TriggerEvent("hudUpdatePlayer", e.PlayerData);
     }
 }
Beispiel #2
0
 public void PlayerUpdatedEvent(MonoBehaviour sender, PlayerManager.PlayerActivityEventArgs e)
 {
     Debug.Log("Player Updated: " + e.PlayerData.Gamertag + " - " + e.PlayerData.guid);
     if (this.viewReady)
     {
         this.m_View.View.TriggerEvent("lobbyUpdatePlayer", e.PlayerData);
     }
 }
Beispiel #3
0
 public void PlayerUpdatedEvent(MonoBehaviour sender, PlayerManager.PlayerActivityEventArgs e)
 {
     // Change the color when the player is updated
     if (this.territoryController)
     {
         if (this.territoryController.LockedCaptureState)
         {
             if (this.territoryController.LockedCaptureState.guid == e.PlayerData.guid)
             {
                 if (gameObject && gameObject.renderer)
                 {
                     gameObject.renderer.material.color = ColorData.ToColor(e.PlayerData.TeamColor);
                 }
             }
         }
     }
 }