Adding Trigger Event

  • Create a box or other 3D Object:

    • make sure this object has a "Box Collider" set to ā€œIsTriggerā€.

  • Add the ā€œPhoneTriggerā€ script to that 3D object and add the phone 3D model to the inspector slot named ā€œPhone Model Objectā€.

  • Make sure to add the Trigger object to the "Controller" script and tick the boolean to activate

  • Then set an input key in the "InputManager". Default set to ā€œEā€!

Last updated