コード例 #1
0
    public void Enter()
    {
        BirdAgent             = Owner.GetComponent <NavMeshAgent>();
        BirdAgent.autoBraking = true;

        Owner.ExcitedParticles.Play();
    }
コード例 #2
0
    public void Enter()
    {
        BirdAgent             = Owner.GetComponent <NavMeshAgent>();
        BirdAgent.autoBraking = true;
        BirdAgent.speed       = Owner.DefaultSpeed;

        patrolTime = Random.Range(Owner.MinMaxPatrolTime.x, Owner.MinMaxPatrolTime.y);

        GoToNextPoint();
    }