| | | 1 | | using System.Collections; |
| | | 2 | | using System.Collections.Generic; |
| | | 3 | | using UnityEngine; |
| | | 4 | | using UnityEngine.InputSystem; |
| | | 5 | | |
| | | 6 | | public class SpeedUpTime : MonoBehaviour |
| | | 7 | | { |
| | | 8 | | [SerializeField] public InputActionReference SpeedUpActivate; |
| | | 9 | | |
| | | 10 | | public TimeManager TimeManager; |
| | | 11 | | |
| | | 12 | | // Start is called before the first frame update |
| | | 13 | | void Start() |
| | 4 | 14 | | { |
| | 4 | 15 | | SpeedUpActivate.action.performed += SpeedUpActivatevoid; |
| | 4 | 16 | | } |
| | | 17 | | |
| | | 18 | | private void SpeedUpActivatevoid(InputAction.CallbackContext obj) |
| | 0 | 19 | | { |
| | 0 | 20 | | TimeManager.DoSpeedUp(); |
| | 0 | 21 | | } |
| | | 22 | | } |