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

        attackEvent.RemoveListener(callback);
    }