Hello,
I am learning both AC and Unity at the same time.
I am trying to do something and I wondered if there was a built in way to do it before I jump into any kind of scripting.
Basically, I want to add further information about an object that appears when the cursor is held over the hotspot for a specific amount of time.
For Example:
The player hovers the cursor over a man in a red shirt.
The audio says: "Its man in a red shirt"
The player leaves the cursor hovering for 3 more seconds.
Audio comes in and says "I wonder wear he got that red shirt from?"
Currently I am using the "Label (if not name):" field on the hotspot to enter the initial description.
Does anyone have any tips or tricks to achieve this?
Thank you in advance,
-Chris
Comments
Unless you create an empty player object and make it follow your mouse so it could trigger triggers and do smth.
Thank you for your reply.
AC.KickStarter.playerInteraction.GetActiveHotspot ();
And to determine whether or not you're in gameplay mode (as opposed to a cutscene):
if (AC.KickStarter.stateHandler.gameState == GameState.Normal)
{
// We're in gameplay!
}