protected override IEnumerator <SimpleActionExecutionControlElements> Execute(PrototypeActionSettings settings, Action fail)
    {
        Debug.Log("picking item");
        //settings.
        GoapAgent agent = settings.agent as GoapAgent;

        agent.GetComponent <RPGHands>().DropItemRight();
        yield break;
    }
예제 #2
0
    protected override IEnumerator <SimpleActionExecutionControlElements> Execute(PrototypeActionSettings settings, Action fail)
    {
        Debug.Log("picking item");
        //settings.
        GoapAgent agent = settings.agent as GoapAgent;

        Debug.Log(settings.effects.Get(WorldStates.STATE_HAND_RIGHT_ITEM));
        Debug.Log(agent.GetComponent <RPGHands>());
        agent.GetComponent <RPGHands>().PickItemRight(settings.effects.Get(WorldStates.STATE_HAND_RIGHT_ITEM));
        yield break;
    }
예제 #3
0
 protected override IEnumerator <SimpleActionExecutionControlElements> Execute(PrototypeActionSettings settings, Action fail)
 {
     Debug.Log("sweeping table");
     (settings.genericAssignments.Get(table) as RPGSOTable).isStateOn = true;
     yield break;
 }