Ejemplo n.º 1
0
 void Start()
 {
     for (int i = 0; i < transform.childCount; i++)
     {
         CoordinateSystemItem cs = transform.GetChild(i).gameObject.AddComponent <CoordinateSystemItem> ();
         cs.Init(Callback);
     }
 }
Ejemplo n.º 2
0
 void Callback(CoordinateSystemItem cooritem)
 {
     hitchild = cooritem.transform;
 }