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