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;
    }
예제 #2
0
 private void OnEnable()
 {
     carController.Enable();
 }
예제 #3
0
 private void OnEnable()
 {
     mainControls.Enable();
 }
예제 #4
0
 private void OnEnable()
 {
     controls.Enable();
 }
예제 #5
0
파일: PauseMenu.cs 프로젝트: fhausman/gds3
 // Start is called before the first frame update
 void Start()
 {
     Controls = new MainControls();
     Controls.Enable();
     Controls.Player.Pause.performed += (ctx) => Pause();
 }
예제 #6
0
 private void Awake()
 {
     mainControls = new MainControls();
     mainControls.Enable();
     mainControls.Car.TakeScreenshot.performed += ctx => takeScreenshot();
 }
예제 #7
0
 private void OnEnable()
 {
     _controls?.Enable();
 }