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

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