public override void updateBehavior(BehaviorManager manager)
 {
     if (checkBehavior(manager))
     {
         GetHealthPack attempt = manager.thingThatHoldsBehaviors.GetComponent <GetHealthPack>();
         //attempt.healthPack = GameObject.Find("HealthPack");
         manager.behaviors.Push(attempt);
         //Push get healthPack
     }
 }
Ejemplo n.º 2
0
    public override void updateBehavior(BehaviorManager manager)
    {
        if (checkBehavior(manager))
        {
            if(checkBehavior(manager))
            {
                GetHealthPack attempt = manager.thingThatHoldsBehaviors.GetComponent<GetHealthPack>();
                attempt.healthpack = GameObject.Find("healthPack");

            }
        }
    }