コード例 #1
0
    public void ToChaseState()
    {
        enemy.currentState       = enemy.chaseState;
        searchTimer              = 0f;
        enemy.navMeshAgent.speed = enemy.chaseSpeed;
        enemy.camouflageInRange();

        if (enemy.enterChase.Any())
        {
            enemy.audioSource.PlayOneShot(Util.RandomElement(enemy.enterChase));
        }
    }
コード例 #2
0
    public void ToChaseState()
    {
        enemy.currentState       = enemy.chaseState;
        searchTimer              = 0f;
        enemy.navMeshAgent.speed = enemy.chaseSpeed;
        enemy.camouflageInRange();

        if (!firstChase)
        {
            enemy.wantedLevel.GuardIsNowVigilant();
            firstChase = true;
        }
    }