public GoapFunctionPair(
     GoapHeuristicFunction Heuristic,
     GoapActionFunction Action
     )
 {
     this.Heuristic = Heuristic;
     this.Action    = Action;
 }
Example #2
0
    void Update()
    {
        // G is Nullable
        GoapActionFunction Action = GetGoapEventWithHighestHScore();

        if (Action != null)
        {
            Action();
        }
    }