public override void OnXGUI() { if (null != codeObject) { DoButton <XCodeObject>("SaveTemplate", SaveTemplete, codeObject); DoButton("Clean", () => codeObject = null); DoButton("Compile", Compile); DoButton("Help MemberAttributes", () => { for (int i = 0; i <= 61440; i++) { XLogger.Log(Enum.ToObject(typeof(MemberAttributes), i).ToString()); } }); codeObject.Draw(this); } else { if (CreateSpaceButton("Create")) { GenerateNewCode(); } DoButton("OpenTemplate", () => codeObject = OpenTemplate()); } }
public override void OnXGUI() { if (null != codeObject) { DoButton <ScriptableObject>("SaveTemplate", SaveTemplete, codeObject); DoButton("Clean", () => codeObject = null); DoButton("Compile", Compile); codeObject.Draw(this); } else { if (CreateSpaceButton("Create")) { GenerateNewCode(); } DoButton("OpenTemplate", () => codeObject = OpenTemplate()); } }