Hey,
I've got an array and I want to get a string value from it. What's the easiest way?
I can get the array value in to a variable, but can't work out how to convert the var to a string.
So, I've got ...
[RequiredField]
[UIHint(UIHint.Variable)]
public FsmArray achievementAwardsScreenTextArray;
[Tooltip("The award number.")]
public FsmInt awardNumber;
[UIHint(UIHint.Variable)]
private FsmVar storeValue;
[UIHint(UIHint.Variable)]
private FsmString theString;
public override void OnEnter()
{
storeValue.SetValue (achievementAwardsScreenTextArray.Get(awardNumber.Value));
... and I need to get storeValue (which should hold a string by that point?) to theString so I can use it to set some text.
How would I do this?
Thanks in advance,
Steven