FANDOM


Note: this is useful if you need your script to use, change or otherwise affect the hotspot the player just used, in a painless no hassle manner.

        Hotspot myHotspot = AC.KickStarter.playerInteraction.GetLastOrActiveHotspot();
        // validate : dont want to have a bad object ref ....
        if (myHotspot != null) 
		{   
		 /*do your stuff here*/ 
		 
		} 
		else 
		{
		 Debug.Log ("Oh Duckpants - I must have made a Boo Boo ! Lost the Hotspot");
		}

-Original tip provided by Simonr. Edited by Alverik-

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.