public void OnDestroy()
 {
     if (!nameTagManager)
     {
         return;
     }
     nameTagManager.Remove(this.transform);
 }
Exemple #2
0
 /// <summary>
 /// Called whenever the player is removed from the PlayerManager
 /// </summary>
 public void OnRemoved()
 {
     if (healthBarManager)
     {
         healthBarManager.Remove(this);
     }
     if (nameTagManager)
     {
         nameTagManager.Remove(this);
     }
 }