39 lines
756 B
C#
39 lines
756 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class cRIARqUADRADO : MonoBehaviour
|
|
{
|
|
[System.Serializable]
|
|
public class teste{
|
|
public string name;
|
|
public int sla;
|
|
public List<Color> cor;
|
|
|
|
}
|
|
|
|
[SerializeField]
|
|
public List<teste> testes;
|
|
|
|
|
|
public GameObject prefab;
|
|
public Transform allign;
|
|
|
|
public int NumerosQuadrados;
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
for (int i = 0; i < NumerosQuadrados; i++)
|
|
{
|
|
GameObject objCriado = Instantiate(prefab);
|
|
objCriado.transform.parent = allign;
|
|
}
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
}
|