Example #1
0
 /// <summary>Changed Color based on Team.</summary>
 private void IsFriendly()
 {
     if (m_owner.GetTeam() == Team.Aggressive ||
         m_owner.GetTeam() != PhotonNetwork.LocalPlayer.GetTeam() || m_owner.GetTeam() == Team.None)
     {
         FillBar.color = Color.red;
     }
     else
     {
         FillBar.color = Color.yellow;
     }
 }
Example #2
0
        private void Start()
        {
            m_owner = PhotonView.Owner;
            PlayerHealthModel.CurrentTeam = m_owner.GetTeam();

            if (!PhotonView.IsMine)
            {
                IsFriendly();
            }

            transform.SetParent(null);
            m_killFeed = KillFeed.Instance;
        }