Did a search and I can only find C# examples. (I’m actually trying to follow along with this video and convert it to Java)
However I had to change up a few things and I get this error on the instantiation line;
UCE0001: ‘;’ expected. Insert a semicolon at the end.
var numberOfEnemys01: int = 20;
var enemyPrefabs01: GameObject[] = null;
function InstantiateEnemy ()
{
for (var i : int = 0; i < numberOfEnemys01; i++)
{
enemyPrefabs01 *= Instantiate GameObject.Find("Prefabs/Enemy Prefabs/prefab alien");*
_ enemyPrefabs01*.SetActive(false);_
_ }_
_}*_
Now obviously, their is a semi colon at the end of that line. So I’m out of ideas. Any help would be greatly appreciated.