示例#1
0
 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();
 }
示例#2
0
 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();
 }