// Update is called once per frame void Update() { if (Input.GetMouseButtonDown(0)) { if (Physics.Raycast(mCamera.ScreenPointToRay(Input.mousePosition), out hit)) { Debug.Log(hit.collider.name); switch (hit.collider.name) { case "Enum": if (enumInt < 2) { enumInt++; } else { enumInt = 0; } mBluetoothType = (BluetoothType)enumInt; onEnumChange(); break; } } } }
// Update is called once per frame void Update() { if(Input.GetMouseButtonDown(0)){ if(Physics.Raycast(mCamera.ScreenPointToRay(Input.mousePosition),out hit)){ Debug.Log(hit.collider.name); switch(hit.collider.name){ case "Enum": if(enumInt < 2)enumInt++; else enumInt = 0; mBluetoothType = (BluetoothType)enumInt; onEnumChange (); break; } } } }
public ProductPrototypeTWO(BluetoothType bluetoothType, WiFiType wifiType) { _bluetoothType = bluetoothType; _wifiType = wifiType; }