コード例 #1
0
        // Use this for initialization
        void Start()
        {
            navMeshAgent = GetComponent <NavMeshAgent>();
            navMeshAgent.updateRotation = false;

            animator   = GetComponent <Animator>();
            locomotion = new Locomotion(animator);
        }
コード例 #2
0
 	// Use this for initialization
 	void Start () 
     {
 		navMeshAgent = GetComponent<NavMeshAgent>();
 		navMeshAgent.updateRotation = false;
 		
 		animator = GetComponent<Animator>();
 		locomotion = new Locomotion(animator);
 	}