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); }