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