protected bool AutomaticMissCheck(Unit attacker, Unit target) { MatchTypeException exc = new MatchTypeException(attacker, target); this.PostNotification(AutomaticMissCheckNotification, exc); return(exc.toggle); }
void OnAutoHitCheck(object sender, object args) { Unit owner = GetComponentInParent <Unit>(); MatchTypeException exc = args as MatchTypeException; if (exc.target == owner) { exc.FlipToggle(); } }