public override void OnStart() { base.OnStart(); if (IsDirty) { m_Inventory = currentAiAgent.GetComponent <IInventory>(); m_Character = currentAiAgent.GetComponent <IAiCharacter>(); IsDirty = false; } }
public override void OnStart() { base.OnStart(); m_CurrentStatus = TaskStatus.Inactive; if (IsDirty) { m_TargetHealthManager = currentTarget.GetComponent <IHealthManager>(); m_AiCharacter = currentAiAgent.GetComponent <IAiCharacter>(); m_AiAnimator = currentAiAgent.GetComponent <Animator>(); IsDirty = false; } }