private static void Register() { if (!MochaInterface.Engine.getInstance().GetIsInited()) throw new InvalidOperationException("Engine must be init'ed before registering script subsystem"); ss = new MochaScriptSystem.ScriptSubsystemManaged(); ss.RegisterToNative(); MochaInterface.Engine.getInstance().LoadInitialLevel(); }
private static void Register() { if (!MochaInterface.Engine.getInstance().GetIsInited()) { throw new InvalidOperationException("Engine must be init'ed before registering script subsystem"); } ss = new MochaScriptSystem.ScriptSubsystemManaged(); ss.RegisterToNative(); MochaInterface.Engine.getInstance().LoadInitialLevel(); }