Ejemplo n.º 1
0
 void Update()
 {
     autoplayCheat.ifEntered(_ => autoplayEnabled = !autoplayEnabled);
     fastCheat.ifEntered(enabled =>
     {
         gameSpeed      = enabled ? 5 : 1;
         Time.timeScale = gameSpeed;
     });
 }