-
June 23rd, 2015, 03:14 PM
#1
C# Script compile error in unity
I have this code.
Code:
using UnityEngine;
using System.Collections;
public class Spawner : MonoBehaviour {
public GameObject [] groups ;
void start(){
spawnNext ();
}
void spawnNext () {
int i = Random.Range (0, groups.Length);
Increment (groups[i],
transform.position,
Quaternion.identity);
}
}
This program is supposed to take a prefab block and spawn it at the top of my screen, like in Tetris. However, when I run it in Unity it says that there is a compiler error. Is there something wrong with my program or with unity?
-
June 23rd, 2015, 04:31 PM
#2
Re: C# Script compile error in unity
Originally Posted by DeathFromAbove
However, when I run it in Unity it says that there is a compiler error. Is there something wrong with my program or with unity?
There is something wrong with your post because you neglected to include the error.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|