// Token: 0x06004DD2 RID: 19922 RVA: 0x001A165C File Offset: 0x0019FA5C private void Update() { if (CrossPlatformInput.GetButtonDown(this.m_Button.buttonName) && !this.down) { this.guiTexture.texture = this.activeTexture; this.down = true; } if (CrossPlatformInput.GetButtonUp("NextCamera") && this.down) { this.guiTexture.texture = this.idleTexture; this.down = false; } }
void Update() { if (CrossPlatformInput.GetButtonDown(m_Button.buttonName) && !down) { guiTexture.texture = activeTexture; down = true; } if (CrossPlatformInput.GetButtonUp("NextCamera") && down) { guiTexture.texture = idleTexture; down = false; } }
void Update() { // Read the jump input in Update so button presses aren't missed. #if CROSS_PLATFORM_INPUT if (CrossPlatformInput.GetButtonDown("Jump")) { jump = true; } if (CrossPlatformInput.GetButtonUp("Jump")) { jumpRelease = true; } #else if (Input.GetButtonDown("Jump")) { jump = true; } #endif }
void Update() { // Read the jump down/up and crouch input in Update so button presses aren't missed. #if CROSS_PLATFORM_INPUT if (CrossPlatformInput.GetButtonDown("Jump")) { jump = true; } if (CrossPlatformInput.GetButton("Crouch")) { crouch = true; } if (CrossPlatformInput.GetButtonUp("Jump")) { jumpUp = true; } if (CrossPlatformInput.GetButtonUp("Crouch")) { crouchUp = true; } #else if (Input.GetButtonDown("Jump")) { jump = true; } if (Input.GetButton("Crouch")) { crouch = true; } if (Input.GetButtonUp("Jump")) { jumpUp = true; } if (Input.GetButtonUp("Crouch")) { crouchUp = true; } #endif }