private static T CreateParameter <T>(string keyName, EventerTypeContainer container, Dictionary <string, object> obj) { if (obj.ContainsKey(keyName) == false) { UnityEngine.Debug.Log(" Could not find parameter loader for " + keyName); } var conditionObj = obj[keyName] as Dictionary <string, object>; return((T)container.CreateInstanceOfType(conditionObj)); }
public EventerParser() { ParameterContainer = new EventerTypeContainer(typeof(IConditionParameters)); ActionsParameterContainer = new EventerTypeContainer(typeof(IConditionActionParameters)); }