Exemplo n.º 1
0
        public override void ProcessTriggers(TriggersSet triggersSet)
        {
            if (Main.netMode == 0)
            {
                if (MechScope.keyStep.JustPressed)
                {
                    SuspendableWireManager.Resume();
                }

                if (MechScope.keyToggle.JustPressed)
                {
                    SuspendableWireManager.Active = !SuspendableWireManager.Active;
                }

                if (MechScope.keyAutoStep.JustPressed)
                {
                    AutoStepWorld.Active = !AutoStepWorld.Active;
                }

                if (MechScope.keySettings.JustPressed)
                {
                    MechScope.settingsUI.Visible = !MechScope.settingsUI.Visible;
                }
            }
        }
Exemplo n.º 2
0
 public override void PostUpdate()
 {
     if (Active && SuspendableWireManager.Running)
     {
         count++;
         if (count > Rate)
         {
             count = 0;
             SuspendableWireManager.Resume();
         }
     }
 }