Пример #1
0
 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);
        }
Пример #3
0
        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>();
        }