I have several hotspots triggering one Interaction, and I need an Action in that list to know which hotspot triggered it. So far I intend to solve that by using a gameObject parameter and then setting that value by checking the active Hotspot at runtime and setting the ActionParameter value on it before the interaction occurs.
I can't seem to find out how to do this, though. I thought I could do something like:
myInteraction.parameters[0].SetValue(gameObject);
but the parameters list is empty. How do I set a parameter value via script at runtime?
Comments
@radiantboy: Just so you know, it's much easier now to get AC's scripts:
KickStarter.runtimeInventory;
will return the RuntimeInventory component.