void OnCanPerformCheck(object sender, object args) { if (mana.MP < amount) { BaseException exc = (BaseException)args; exc.FlipToggle(); } }
void OnCanPerformCheck(object sender, object args) { Stats s = GetComponentInParent <Stats>(); if (s[StatTypes.MP] < amount) { BaseException exc = (BaseException)args; exc.FlipToggle(); } }
void OnTurnCheck(object sender, object args) { // Dont allow a KO'd unit to take turns BaseException exc = args as BaseException; if (exc.defaultToggle == true) { exc.FlipToggle(); } }
private void OnTurnCheck(object sender, object args) { // KO'd unit takes no turns BaseException exc = args as BaseException; if (exc.defaultToggle == true) { exc.FlipToggle(); } }