private void CreateEventFile(EventWindowContent content) { string path = $"{Application.dataPath}/{content.cs_path}"; CreatePath(path); string text = $"public class {_content.eventName} : Lowy.Event.IEvent {{ }}"; // File.WriteAllText($"{path}/{content.eventName}.cs", text); }
private void OnEnable() { _content = EventUtility.GetContent(); _setting = EventUtility.GetSetting(); }
private bool CanCreate(EventWindowContent content) { return(!File.Exists($"{Application.dataPath}/{content.cs_path}/{content.eventName}.cs")); }