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; }
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; }
protected override IEnumerator <SimpleActionExecutionControlElements> Execute(PrototypeActionSettings settings, Action fail) { Debug.Log("sweeping table"); (settings.genericAssignments.Get(table) as RPGSOTable).isStateOn = true; yield break; }