Exemplo n.º 1
0
        /// <summary>
        /// Loads this extension
        /// </summary>
        public override void Load()
        {
            Manager.RegisterPluginLoader(new UnityPluginLoader());

            Interface.Oxide.RegisterEngineClock(() => UnityScript.RealtimeSinceStartup);

            // Register our MonoBehaviour
            UnityScript.Create();
        }
Exemplo n.º 2
0
        /// <summary>
        /// Loads this extension
        /// </summary>
        public override void Load()
        {
            Interface.Oxide.LogInfo($"Unity version: {UnityEngine.Application.unityVersion}");

            Manager.RegisterPluginLoader(new UnityPluginLoader());

            Interface.Oxide.RegisterEngineClock(() => UnityScript.RealtimeSinceStartup);

            // Register our MonoBehaviour
            UnityScript.Create();
        }
 public override void Load()
 {
     base.get_Manager().RegisterPluginLoader(new UnityPluginLoader());
     Interface.get_Oxide().RegisterEngineClock(() => Time.realtimeSinceStartup);
     UnityScript.Create();
 }