void Awake() { PathController = GetComponentInChildren <AbstractPathMind>(); PathController.SetCharacter(this); LocomotionController = GetComponent <Locomotion>(); LocomotionController.SetCharacter(this); }
void Start() { PathController = GetComponentInChildren <AbstractPathMind>(); PathController.SetCharacter(this); LocomotionController = GetComponent <Locomotion>(); LocomotionController.SetCharacter(this); var aux = GameObject.FindGameObjectsWithTag("Enemy"); enemies = new List <GameObject>(aux); }
void Start() { PathController = GetComponentInChildren <AbstractPathMind>(); PathController.SetCharacter(this); LocomotionController = GetComponent <Locomotion>(); LocomotionController.SetCharacter(this); //Online var aux = GameObject.FindGameObjectsWithTag("Enemy"); enemies = new List <GameObject>(aux); //Planner PlanController = GetComponentInChildren <Planner>(); PlanController.SetCharacter(this); estado = new List <PropertyStrips>(); }