You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
565 B

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GameStart : MonoBehaviour
{
public GameObject go;
public int row = 10;
public int col = 10;
void Start()
{
for (float i = 0; i < this.row; i++)
{
for (float j = 0; j < col; j++)
{
GameObject.Instantiate(this.go, new Vector3(go.transform.position.x + j, go.transform.position.y + i, go.transform.position.z), Quaternion.identity);
}
}
}
void Update()
{
}
}