public static void Log(FFStateMachineDebugMessageType type, string title, string description, bool bShow) { FFStateMachineDebugMessage msg = new FFStateMachineDebugMessage(type, title, description); lista.Add(msg); if (bShow) { if (enableConsoleWriteln) Console.WriteLine(msg); evt.trigger(FFStateMachineEventType.normal, "onLog", null, new Dictionary<string, object>() { {"msg",msg} }); } }
public FFStateMachineDebugMessage(FFStateMachineDebugMessageType type, string title, string description) { this.type = type; this.title = title; this.description = description; this.date = DateTime.Now; }