Hello, I got a script from a tutorial, and a unit is supposed to spawn on Start.
It is saying I need an instance of type Unit to access the Create function:
var GO : GameObject;
function Start() {
Unit.Create(GO, Vector3.zero, Quaternion.identity, 0);
}
public class Unit {
function Create(OBJ : GameObject, pos : Vector3, rot : Quaternion, ID : int) {
GameObject.Instantiate(OBJ, pos, rot);
}
function Destroy (ID : int) {
}
}