void Start() { motor = GetComponent<EnemyMotor>(); senses = GetComponent<EnemySenses>(); sounds = GetComponent<EnemySounds>(); mobile = GetComponentInChildren<DaggerfallMobileUnit>(); }
void Start() { senses = GetComponent<EnemySenses>(); controller = GetComponent<CharacterController>(); mobile = GetComponentInChildren<DaggerfallMobileUnit>(); isHostile = (mobile.Summary.Enemy.Reactions == MobileReactions.Hostile); }