Exemplo n.º 1
0
        public CubeUnity(UnityPeripheral peripheral)
        {
            this.peripheral = peripheral;
            this.gameObject = peripheral.obj;

            id        = gameObject.GetInstanceID().ToString();
            simulator = gameObject.GetComponent <CubeSimulator>();
        }
Exemplo n.º 2
0
 public CubeUnity(GameObject gameObject)
 {
     this.gameObject = gameObject;
     id        = gameObject.GetInstanceID().ToString();
     simulator = gameObject.GetComponent <CubeSimulator>();
 }