public void Deactive() { NotifyObservers(EventEnum.DEATH); gamePieces.Remove(this); gameObject.SetActive(false); OnDeath?.Invoke(); }
public static void GameObjectIsDead(int score) { OnDeathAction?.Invoke(score); }