Ejemplo n.º 1
0
        public static void init()
        {
            CommandLineSettings.Settings.UseConsole = true;
            Alpharite.println("Initializing injection");
            _alphaRiteInstance = new GameObject();

            _alphaRiteInstance.transform.parent = null;
            var gameRootObject = _alphaRiteInstance.transform.root;

            if (gameRootObject != null && gameRootObject.gameObject != _alphaRiteInstance)
            {
                gameRootObject.parent = _alphaRiteInstance.transform;
            }

            _alphaRiteInstance.AddComponent <MonoScriptAdapter>();
            GameObject.DontDestroyOnLoad(_alphaRiteInstance);
            Alpharite.println("Injection success");
        }
Ejemplo n.º 2
0
 public static void stop()
 {
     Alpharite.println("Stopping Alpharite");
     GameObject.Destroy(_alphaRiteInstance);
     Alpharite.println("Alpharite stopped");
 }