ToggleMultiCore.cs 329 B

1234567891011121314151617181920212223
  1. using UnityEngine;
  2. public class ToggleMultiCore : MonoBehaviour
  3. {
  4. bool Enabled = false; //true;
  5. void Start()
  6. {
  7. //Application.targetFrameRate = 60;
  8. MegaModifiers.ThreadingOn = Enabled;
  9. }
  10. void Update()
  11. {
  12. if ( Input.GetKeyDown(KeyCode.T) )
  13. {
  14. Enabled = !Enabled;
  15. MegaModifiers.ThreadingOn = Enabled;
  16. }
  17. }
  18. }