Limit a Hotspot to specific Players

When Player-switching is enabled, this script allows you to limit a Hotspot's interactivity to specific Players characters. To use it:


 * 1) Create a new C# script named PlayerSpecificHotspot.cs, and paste in the code below
 * 2) Add the new Player Specific Hotspot component to a Hotspot, and add the IDs of all Players that can interact with it. (A Player's ID is listed next to their prefab field in the Settings Manager)

PlayerSpecificHotspot.cs: