- Home /
Question by
GamersFrenzy · Aug 01, 2014 at 08:11 PM ·
array
I am attempting to build an array that houses 3 GameObjects
Here is what I have so far, I am working with a program who is obvious clueless but I am trying to get a random spawn feature at a set location I have paired with a GameObject [Spawn point] Inside the engine.. Just having trouble getting it to function the way I want it to.
var platforms : GameObject[];
var platformSpawn : Transform[];
var platformSpeed : float[];
function Spawn() {
}
function Start () {
}
function Update () {
if(Random.value <=.7)
instace = Instantiatte(game_cube, spawn.position, spawn.rotation);
}
Comment
Your answer