示例#1
0
    protected bool AutomaticMissCheck(Unit attacker, Unit target)
    {
        MatchTypeException exc = new MatchTypeException(attacker, target);

        this.PostNotification(AutomaticMissCheckNotification, exc);
        return(exc.toggle);
    }
示例#2
0
    void OnAutoHitCheck(object sender, object args)
    {
        Unit owner             = GetComponentInParent <Unit>();
        MatchTypeException exc = args as MatchTypeException;

        if (exc.target == owner)
        {
            exc.FlipToggle();
        }
    }