コード例 #1
0
 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();
         }
     }
 }
コード例 #2
0
 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);
         }
     }
 }
コード例 #3
0
 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();
         }
     }
 }
コード例 #4
0
 private void OnTriggerStay(Collider other)
 {
     if (other.transform.tag == "Player")
     {
         if (Input.GetButtonDown("Action"))
         {
             ui_controller.DesactiveActionUI();
             TriggerDialogue();
         }
     }
 }