I have two dynamic strings variables. I want to combine their values and assign them to a different variable (in this case a function variable). For example:
var level1Hard : float[] = [a, b, c];
//...
//These are actually generated depending on the level
var thisLevel : String = "level1";
var thisDifficulty : String = "Hard";
//THIS IS WHERE I WANT THE MAGIC TO HAPPEN
//CALL THE FUNCTION INSERTING THE DEFINED level1Hard : float[] IN AS THE VARIABLE
levelSettings(thisLevel + thisDifficulty)
function levelSettings(settings : float[])
{
...
}
I tried using eval(). Worked fine until I tried to make a build to the iPhone. Complained about System.dll and assembly stripping. For whatever reason assembly stripping freezes my game when this script is run.
Any suggestions?