Hey! I give this error when i try to use matrix…
Do you have solution?
//cs code
using UnityEngine;
using System.Collections;
public class caselle : MonoBehaviour {
int i;
int x=4;
int y=4;
GameObject[][] nuovacasella;
void Start () {
nuovacasella = new GameObject[4][4];
for(i=0; i<x+1; i++){
for(y=y; y>-1; i--){
nuovacasella*[y] = (GameObject)Instantiate(Resources.Load("Pivot"));*
_ TextMesh testo = nuovacasella*[y].gameObject.GetComponentInChildren();_
_ testo.text= i.ToString();_
nuovacasella_[y].transform.position = new Vector3(100i, 100y, -1);
Debug.Log (nuovacasella[y].transform.position);
}
}
}*_
* void Update () {*
* }*
}