// Update is called once per frame void Update() { if (Input.GetAxisRaw(PlayerInputTranslator.GetVerticalAxis(Player.ON)) > .5 || Input.GetAxisRaw(PlayerInputTranslator.GetVerticalAxis(Player.OFF)) > .5) { reset.Select(); //left_pointer.transform.localPosition = new Vector3(top_left.x, top_left.y, left_pointer.transform.localPosition.z); //right_pointer.transform.localPosition = new Vector3(top_right.x, top_right.y, left_pointer.transform.localPosition.z); ; } if (Input.GetAxisRaw(PlayerInputTranslator.GetVerticalAxis(Player.ON)) < -.5 || Input.GetAxisRaw(PlayerInputTranslator.GetVerticalAxis(Player.OFF)) < -.5) { btnToMenu.Select(); //left_pointer.transform.localPosition = new Vector3(bottom_left.x, bottom_left.y, left_pointer.transform.localPosition.z); //right_pointer.transform.localPosition = new Vector3(bottom_right.x, bottom_right.y, left_pointer.transform.localPosition.z); } //if (Input.GetButton(PlayerInputTranslator.GetJump(Player.ON)) || // Input.GetButton(PlayerInputTranslator.GetJump(Player.OFF))) //{ // if (left_pointer.transform.localPosition.y == top_left.y) // { // SceneManager.LoadScene("MainMenue"); // } // else // { // LevelController.ResetScene(); // LevelController.InMenue = false; // } //} }
new void Start() { //rb = GetComponent<Rigidbody>(); controller = GetComponent <CharacterController>(); playerCurrentRoom = ""; playerRoomCheck = ""; /*horizontalAxis = "POnHorizontal"; * verticalAxis = "POnVertical"; * jump = "POnJump"; * interact = "Button On";*/ horizontalAxis = PlayerInputTranslator.GetHorizontalAxis(Player.ON); verticalAxis = PlayerInputTranslator.GetVerticalAxis(Player.ON); jump = PlayerInputTranslator.GetJump(Player.ON); interact = PlayerInputTranslator.GetLeftInteract(Player.ON); reset = PlayerInputTranslator.GetReset(Player.ON); pickUp = PlayerInputTranslator.GetPickup(Player.ON); base.Start(); }
new void Start() { //rb = GetComponent<Rigidbody>(); controller = GetComponent <CharacterController>(); playerCurrentRoom = ""; playerRoomCheck = ""; /*horizontalAxis = "POffHorizontal"; * verticalAxis = "POffVertical"; * jump = "POffJump"; * interact = "Button Off";*/ horizontalAxis = PlayerInputTranslator.GetHorizontalAxis(Player.OFF); verticalAxis = PlayerInputTranslator.GetVerticalAxis(Player.OFF); jump = PlayerInputTranslator.GetJump(Player.OFF); interact = PlayerInputTranslator.GetRightInteract(Player.OFF); reset = PlayerInputTranslator.GetReset(Player.OFF); pickUp = PlayerInputTranslator.GetPickup(Player.OFF); base.Start(); //animator.SetBool("PlayerOff", true); }