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