예제 #1
0
        private void OnEvent(MonoBehaviour behaviour, Events ev)
        {
            bool flag  = behaviour.GetType() == typeof(Flashlight) && ev == Events.AfterStart;
            bool flag2 = flag;

            if (flag2)
            {
                this.SaveGame();
                base.ModHelper.Console.WriteLine(": Starting time loop...");
                TimeLoop.SetTimeLoopEnabled(true);
                base.ModHelper.Console.WriteLine(": Setting isTimeFlowing to false...");
                typeof(TimeLoop).GetAnyField("_isTimeFlowing").SetValue(null, false);
                base.ModHelper.Console.WriteLine(string.Format(": Sand-loop timescale set to {0}x", StopTime._debugTimeScale));
                base.ModHelper.Console.WriteLine(string.Format(": Sand-loop length set to {0} minutes.", StopTime._LoopLength));
                this._isStarted = true;
            }
        }