add change trains
This commit is contained in:
@@ -33,16 +33,18 @@ public class QRCodeReader : MonoBehaviour
|
||||
{
|
||||
for(int i = 0; i < devices.Length; i++)
|
||||
{
|
||||
if(Application.platform == RuntimePlatform.Android && !devices[i].isFrontFacing)
|
||||
{
|
||||
backCameraEnabled = true;
|
||||
backCameraIDs.Add(i);
|
||||
}
|
||||
else
|
||||
if(Application.platform == RuntimePlatform.WindowsEditor)
|
||||
{
|
||||
backCameraEnabled = true;
|
||||
backCameraId = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
if(devices[i].isFrontFacing) continue;
|
||||
|
||||
backCameraEnabled = true;
|
||||
backCameraIDs.Add(i);
|
||||
}
|
||||
}
|
||||
|
||||
if(backCameraIDs.Count != 0)
|
||||
|
||||
Reference in New Issue
Block a user