public CubeUnity(UnityPeripheral peripheral) { this.peripheral = peripheral; this.gameObject = peripheral.obj; id = gameObject.GetInstanceID().ToString(); simulator = gameObject.GetComponent <CubeSimulator>(); }
public CubeUnity(GameObject gameObject) { this.gameObject = gameObject; id = gameObject.GetInstanceID().ToString(); simulator = gameObject.GetComponent <CubeSimulator>(); }