public void ActivateButton() { if ((touchpadLeft && leftHand) || (touchpadRight && rightHand) && PlayerManager.thisPlayer.died == false) { teleport.enabled = true; } else { teleport.enabled = false; } if ((leftHand && touchpadLeftPress) || (rightHand && touchpadRightPress) && PlayerManager.thisPlayer.died == false) { teleport.TeleportPlayer(); Timer(true); } if ((leftHand && leftHandAxis > 0.85f) || (rightHand && rightHandAxis > 0.85f) && activated == false) { Buttons.Activate(gameObject); activated = true; } else if ((leftHand && leftHandAxis < 0.85f) || (rightHand && rightHandAxis < 0.85f) && activated == true) { activated = false; } }