Example #1
0
 public bool Die()
 {
     GameManager.Instance.UnRegisterUnit(this);
     PlayerOwner.UnregisterUnitToPlayer(this);
     DestroyImmediate(gameObject);
     return(true);
 }