예제 #1
0
        private void Awake()
        {
            Input = GetComponent <ControllerInput> ();
            Agent = GetComponent <NavMeshAgent> ();

            Input.AddClickListener(MoveToPoint);
        }
예제 #2
0
        private void OnEnable()
        {
            Input = GetComponent <ControllerInput> ();
            Agent = GetComponent <NavMeshAgent> ();

            effect = GetComponentInChildren <VisualEffect> ();

            entityAnimator = GetComponent <LastDay.EntityAnimator>();

            Input.AddClickListener(MoveToPoint);
        }