FANDOM


This is useful if you want to simulate traditional console style controls, which usually have an Accept and a Cancel buttons. note however that you will need to create the extra Input in your input manager to get the script to work. Add the following code to a C# script (the basic Unity script template):

void Update ()
{
  // This simply adds Cancel Functionality
  if (Input.GetButtonDown ("Cancel"))
  {
    // De-select the current Hotspot
    AC.KickStarter.playerInteraction.DeselectHotspot ();
    // Close the Interaction menu(s)
    AC.KickStarter.playerMenus.SetInteractionMenus (false);
  }
}