Hi All… In a game like “Need For Speed” You have a vehicle selection screen if you press left the car on the screen will change… I’m trying to achieve something like this with models… I’m fairly new to scripting so its some trouble… I have this so far.
#pragma strict
@script ExecuteInEditMode()
var models : GameObject[];
var spawnPOS : GameObject;
function Start () {
}
function Update () {
}
function OnGUI () {
if (GUI.Button(Rect(20,420,50,30),"Prev")){
Prev();
}
if (GUI.Button(Rect(250,420,50,30),"Next")){
Next();
}
}
function Next () {
}
function Prev () {
}
But i have never used var models : GameObject;
I’m not even sure if this is the right way to do it… So i came here hoping someone could explain it Thanks!