Example #1
0
    public void Begin()
    {
        if (inProcess || agent.isAttacking || agent.isDefending)
        {
            return;
        }

        mouthCollider.enabled    = true;
        mouth.lastBiteFoodAmount = 0f;

        process.Begin();
    }
Example #2
0
    public void Begin()
    {
        if (inProcess || outOfStamina)
        {
            return;
        }

        coreModule.stamina[0] -= 0.1f;
        candidate.performanceData.totalTimesDefended++;

        process.Begin();
    }
Example #3
0
    public void Begin()
    {
        if (inProcess)
        {
            return;
        }

        mouth.enabled = true;
        candidate.performanceData.totalTimesAttacked++;

        process.Begin();
    }