private void Awake() { _actor = GetComponent <Actor>(); _brain = GetComponent <FighterBrain>(); _stamina = GetComponent <CharacterStamina>(); _obstacle = GetComponent <NavMeshObstacle>(); _direction = transform.forward; _lastPosition = transform.position; }
private void Awake() { _brain = GetComponent <FighterBrain>(); _actor = GetComponent <Actor>(); for (int i = 0; i < Actions.Length; i++) { Actions[i].SetupActor(_actor); } }
private void Awake() { _actor = GetComponent <Actor>(); _brain = GetComponent <FighterBrain>(); }