// Use this for initialization void Start() { Agent = this.GetComponent<NavMeshAgent>(); MyNavType = navigationType.Waypoint; MySpriteDirection = spriteDirection.Down; MoveTrigger = false; MyAnimator = this.GetComponentInChildren<Animator>(); Transform objManager = GameObject.FindGameObjectWithTag("Manager").transform; manager = objManager.GetComponent<scr_manager>(); WaypointManager = schedule[0].placeToGO; }
// Use this for initialization void Start() { Agent = this.GetComponent<NavMeshAgent>(); MyNavType = navigationType.Objective; MySpriteDirection = spriteDirection.Down; MyAnimator = this.GetComponentInChildren<Animator>(); triggerRightClick = true; holdItem = false; Transform objManager = GameObject.FindGameObjectWithTag("Manager").transform; manager = objManager.GetComponent<scr_manager>(); }
// Use this for initialization void Start() { Agent = this.GetComponent <NavMeshAgent>(); MyNavType = navigationType.Objective; MySpriteDirection = spriteDirection.Down; MyAnimator = this.GetComponentInChildren <Animator>(); triggerRightClick = true; holdItem = false; Transform objManager = GameObject.FindGameObjectWithTag("Manager").transform; manager = objManager.GetComponent <scr_manager>(); }
// Use this for initialization void Start() { Agent = this.GetComponent <NavMeshAgent>(); MyNavType = navigationType.Waypoint; MySpriteDirection = spriteDirection.Down; MoveTrigger = false; MyAnimator = this.GetComponentInChildren <Animator>(); Transform objManager = GameObject.FindGameObjectWithTag("Manager").transform; manager = objManager.GetComponent <scr_manager>(); WaypointManager = schedule[0].placeToGO; }