private void OnDisable() { OnStaterPokemonChoosed.RemoveListener(SetStarterPokemon); OnPlayerAttackChoosen.RemoveListener(PlayerAttack); OnPokemonDied.RemoveListener(EndBattle); }
public void Unsubscribe(AttackableGameObject owner) { UnityAction <Attack> callback = owner.OnAttacked; attackEvent.RemoveListener(callback); }