I’m getting an error and I don’t know how to get rid of it. I think I can set the values in Start() but I want t learn how to do it this way just for my knowledge.
var input : Array = {u,ur,r,dr,d,dl,l,ul};
function Start()
{
}
I think what I’m doing wrong is that I’m not specifying which type of value is inside of the array(string, float, int, etc). but I don’t know how to do this.
I also tried this with no luck
var input : String[] = {u,ur,r,dr,d,dl,l,ul};
I feel you will benefit tremendously from these tutorials: [Unity Beginner Scripting][1] [1]: http://unity3d.com/learn/tutorials/modules/beginner/scripting
– JamoraThat's where I just came from.
– superluigi