Esempio n. 1
0
 private void Awake()
 {
     _actor        = GetComponent <Actor>();
     _brain        = GetComponent <FighterBrain>();
     _stamina      = GetComponent <CharacterStamina>();
     _obstacle     = GetComponent <NavMeshObstacle>();
     _direction    = transform.forward;
     _lastPosition = transform.position;
 }
Esempio n. 2
0
        private void Awake()
        {
            _brain = GetComponent <FighterBrain>();
            _actor = GetComponent <Actor>();

            for (int i = 0; i < Actions.Length; i++)
            {
                Actions[i].SetupActor(_actor);
            }
        }
Esempio n. 3
0
 private void Awake()
 {
     _actor = GetComponent <Actor>();
     _brain = GetComponent <FighterBrain>();
 }