示例#1
0
 public void Initialize()
 {
     Logger.LogWarning("Initializing");
     PluginWatcher.GetInstance().AddWatcher(Type, Extension);
     PluginLoader.GetInstance().PluginLoaders.Add(Type, this);
     Logger.LogWarning("loading");
     LoadPlugins();
 }
示例#2
0
 public void Initialize()
 {
     ReflectionExtensions.SetFieldValueValue(typeof(MoonSharp.Interpreter.Platforms.PlatformAutoDetector), "m_AutoDetectionsDone", true);
     ReflectionExtensions.SetFieldValueValue(typeof(MoonSharp.Interpreter.Platforms.PlatformAutoDetector), "<IsRunningOnUnity>k__BackingField", true);
     ReflectionExtensions.SetFieldValueValue(typeof(MoonSharp.Interpreter.Platforms.PlatformAutoDetector), "<IsRunningOnMono>k__BackingField", true);
     ReflectionExtensions.SetFieldValueValue(typeof(MoonSharp.Interpreter.Platforms.PlatformAutoDetector), "<IsRunningOnClr4>k__BackingField", true);
     PluginWatcher.GetInstance().AddWatcher(Type, Extension);
     PluginLoader.GetInstance().PluginLoaders.Add(Type, this);
     LoadPlugins();
 }
示例#3
0
 public void Initialize()
 {
     PluginWatcher.GetInstance().AddWatcher(Type, Extension);
     PluginLoader.GetInstance().PluginLoaders.Add(Type, this);
     LoadPlugins();
 }