// Update is called once per frame void Update() { controller = GetComponent <playerMovement2>(); if (controller.getController().GetButtonDown("Pause")) { if (GameIsPaused) { Resume(); } else { Pause(); } } }
// Start is called before the first frame update void Start() { player = this.transform.parent.gameObject; hint = player.GetComponentsInChildren <instructionManager>()[0]; controller = player.GetComponent <playerMovement2>(); }
// Start is called before the first frame update void Start() { instance = this; rb = gameObject.GetComponent <Rigidbody>(); }