private void OnTriggerStay(Collider other) { if (other.transform.tag == "Player") { if (Input.GetButtonDown("Action")) { ui_controller.DesactiveActionUI(); OpeningDoor(); //OPEN DOOR } if (Input.GetButtonDown("Cancel")) { ui_controller.ActiveActionUI(); } } }
private void OnTriggerStay(Collider other) { if (other.transform.tag == "Player") { if (Input.GetButtonDown("Action")) { ui_controller.DesactiveActionUI(); other.SendMessage("ClimbBoolean", true); other.transform.rotation = Quaternion.LookRotation(transform.rotation * Vector3.forward); } if (Input.GetButtonDown("Cancel")) { ui_controller.ActiveActionUI(); other.SendMessage("ClimbBoolean", false); } } }
private void OnTriggerStay(Collider other) { if (other.transform.tag == "Player") { if (Input.GetButtonDown("Action")) { ui_controller.DesactiveActionUI(); other.GetComponent <Character_Controller>().StopMouseMovement(); TriggerChest(); } if (Input.GetButtonDown("Cancel")) { CloseChest(); other.GetComponent <Character_Controller>().ActiveMouseMovement(); ui_controller.ActiveActionUI(); } } }
private void OnTriggerStay(Collider other) { if (other.transform.tag == "Player") { if (Input.GetButtonDown("Action")) { ui_controller.DesactiveActionUI(); TriggerDialogue(); } } }