Exemple #1
0
        public CubeUnity(UnityPeripheral peripheral)
        {
            this.peripheral = peripheral;
            this.gameObject = peripheral.obj;

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