Add temporary speed mode

This commit is contained in:
Antoine H 2021-01-17 13:43:41 +01:00
parent 63e88c3a27
commit 08f623a1b1
2 changed files with 6 additions and 1 deletions

View file

@ -138,6 +138,11 @@ public sealed class GameSystem : MonoBehaviour
toggleSlowMode(); toggleSlowMode();
Debug.Log("Time scale: "+Time.timeScale); Debug.Log("Time scale: "+Time.timeScale);
} }
if (Input.GetButtonDown("Fire3"))
{
toggleSlowMode(2.0f);
Debug.Log("Time scale: "+Time.timeScale);
}
// Debug.Log("Service timer : "+(int)serviceTimer); // Debug.Log("Service timer : "+(int)serviceTimer);
} }

View file

@ -74,7 +74,7 @@ InputManager:
descriptiveName: descriptiveName:
descriptiveNegativeName: descriptiveNegativeName:
negativeButton: negativeButton:
positiveButton: left shift positiveButton: e
altNegativeButton: altNegativeButton:
altPositiveButton: mouse 2 altPositiveButton: mouse 2
gravity: 1000 gravity: 1000