private void Awake() { instance = this; IsOverhead = false; TargetRotation = 0f; m_mainControls = new MainControls(); m_mainControls.Camera.SetCallbacks(this); m_mainControls.Enable(); m_helpDisplay.SetActive(false); transform.position = Vector3.zero; }
private void OnEnable() { carController.Enable(); }
private void OnEnable() { mainControls.Enable(); }
private void OnEnable() { controls.Enable(); }
// Start is called before the first frame update void Start() { Controls = new MainControls(); Controls.Enable(); Controls.Player.Pause.performed += (ctx) => Pause(); }
private void Awake() { mainControls = new MainControls(); mainControls.Enable(); mainControls.Car.TakeScreenshot.performed += ctx => takeScreenshot(); }
private void OnEnable() { _controls?.Enable(); }