private void Start() { statManager = StatManager.instance; lootDrop = GetComponent <LootDrop>(); animController = GetComponent <AIAnimationController>(); }
// Start is called before the first frame update void Start() { OnStart(); ai = GetComponent <AI>(); animController = GetComponent <AIAnimationController>(); basicAttackTime = animController.GetActionDuration(AnimationActionType.BasicAttack); }
/// <summary> /// Assignments and code called on start. /// </summary> public virtual void OnStart() { stats = GetComponent <Stats>(); anim = GetComponent <Animator>(); animController = GetComponent <AIAnimationController>(); audioSource = GetComponent <AudioSource>(); state = CreatureState.Idle; allegiance = CreatureAllegiance.Neutral; stats.currentMoveSpeed = stats.defaultMoveSpeed; }
void Awake() { ai = GetComponent <AICharacter>(); aiAnimationController = GetComponent <AIAnimationController>(); }