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

        attackEvent.RemoveListener(callback);
    }