Exemplo n.º 1
0
 void OnLevelWasLoaded(int level)
 {
     VRCModLogger.Log("[ModComponent] OnLevelWasLoaded called (" + level + ")");
     if (level == 0)
     {
         StartCoroutine(VRCToolsUpdater.UpdateAndRebootIfRequired());
     }
     if (mods != null)
     {
         mods.OnLevelWasLoaded(level);
     }
     freshlyLoaded = true;
 }
Exemplo n.º 2
0
        void Awake()
        {
            VRCModLogger.Log("[ModComponent] Awake called");
            DontDestroyOnLoad(gameObject);
            Instance = this;

            if (VRCToolsUpdater.CheckForVRCToolsUpdate())
            {
                VRCToolsUpdater.SheduleVRCToolsUpdate();
            }
            else
            {
                mods = new CompositeModCaller(ModManager.ModControllers);
                mods.OnApplicationStart();
            }
        }