private IConditionEvent CreateConditionEvent(Dictionary <string, object> obj) { if (obj.ContainsKey("ConditionEvent") == false) { UnityEngine.Debug.Log(" Could not find event type on condition passed in"); return(null); } string eventType = obj["ConditionEvent"] as string; return(ConditionEventFactory.CreateEventType(eventType.ToEnum <ConditionEventTypes>())); }
private void LoadJson() { ConditionEventFactory.Setup(); ConditionActionFactory.Setup(); Debug.Log(" Brian"); if (testJson.text != null) { Debug.Log(testJson.text); } var jsonString = testJson.text; eventParser.ParseJson(jsonString); }