public void IsDead() { listOfTheLiving.RemoveUnitFromList(this); if (this is King) { infoUI.GameOver((isWhite) ? "White" : "Black"); } Destroy(gameObject); }
public void IsDead() { listOfTheLiving.RemoveUnitFromList(this); if (this is King) { infoUI.GameOver((isWhite) ? "White" : "Black"); } Destroy(gameObject); }