Ejemplo n.º 1
0
 public override void OnStart()
 {
     base.OnStart();
     if (IsDirty)
     {
         m_Inventory = currentAiAgent.GetComponent <IInventory>();
         m_Character = currentAiAgent.GetComponent <IAiCharacter>();
         IsDirty     = false;
     }
 }
Ejemplo n.º 2
0
        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;
            }
        }