private void Awake() { Input = GetComponent <ControllerInput> (); Agent = GetComponent <NavMeshAgent> (); Input.AddClickListener(MoveToPoint); }
private void OnEnable() { Input = GetComponent <ControllerInput> (); Agent = GetComponent <NavMeshAgent> (); effect = GetComponentInChildren <VisualEffect> (); entityAnimator = GetComponent <LastDay.EntityAnimator>(); Input.AddClickListener(MoveToPoint); }