Exemplo n.º 1
0
    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>()));
    }
Exemplo n.º 2
0
    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);
    }