Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     cube = GameObject.Find("UICube").GetComponent <UICube>();
 }
Ejemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     thisBody = gameObject.GetComponent <Rigidbody>();
     cube     = GameObject.Find("UICube").GetComponent <UICube>();
 }