Exemplo n.º 1
0
        static bool OnUnload(UnityModManager.ModEntry modEntry)
        {
            if (modEntry.Active)
            {
                SmoothTracking.TeardownSmoothedCamera();
            }

            return(true);
        }
Exemplo n.º 2
0
        static bool OnToggle(UnityModManager.ModEntry modEntry, bool isTogglingOn)
        {
            if (isTogglingOn)
            {
                SmoothTracking.SetupSmoothedCamera();
            }
            else
            {
                SmoothTracking.TeardownSmoothedCamera();
            }

            return(true);
        }
Exemplo n.º 3
0
        static bool OnLoad(UnityModManager.ModEntry modEntry)
        {
            try { settings = Settings.Load <Settings>(modEntry); } catch { }

            modEntry.OnGUI     = OnGUI;
            modEntry.OnSaveGUI = OnSaveGUI;
            modEntry.OnUnload  = OnUnload;
            modEntry.OnToggle  = OnToggle;

            if (modEntry.Active)
            {
                SmoothTracking.SetupSmoothedCamera();
            }

            return(true);
        }