Exemple #1
0
 public void SwitchOut()
 {
     if (CanSwitch())
     {
         Slot.Clear();
         ActiveState = ActiveState.Inactive;
         SwitchedOut.InvokeSafe(this);
     }
 }
 protected virtual void OnSwitchedOut(Pokemon switchIn)
 {
     SwitchedOut?.Invoke(this, new SwitchedOutEventArgs()
     {
         switchIn      = switchIn,
         battlePokemon = this,
         pokemon       = Pokemon
     });
 }