Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var tile : GameObject;
- var tile1 : GameObject;
- function Start () {
- Num = Random.Range(1,3);
- if(Num == 1){
- var spawn =
- Instantiate(tile,transform.position,transform.rotation);
- }
- else if(Num == 2){
- var spawn1 =
- Instantiate(tile1,transform.position,transform.rotation);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment