public static AIEntity AddTestAction1(this AIContext context) { var condition = new GoapState <string, object> () { }; var effect = new GoapState <string, object> () { ["HasAction1"] = true }; return(context.AddAction(0, condition, effect, () => { Console.WriteLine("[ACTION 1]"); return GoapActionStatus.Success; })); }