|
|
@@ -12,9 +12,10 @@ public class InfraredResolution : MonoBehaviour
|
|
|
/// </summary>
|
|
|
[SerializeField] List<Toggle> ToggleList = new List<Toggle>();
|
|
|
// Start is called before the first frame update
|
|
|
+ int _index = 0;
|
|
|
void Start()
|
|
|
{
|
|
|
- int _index = 0;
|
|
|
+
|
|
|
|
|
|
if (InfraredDemo.running) {
|
|
|
_index = (int)InfraredDemo._ins.resoution.Get();
|
|
|
@@ -43,7 +44,7 @@ public class InfraredResolution : MonoBehaviour
|
|
|
print("执行你的选中方法:"+ value);
|
|
|
|
|
|
//InfraredDemo._ins.SetResolutionGuider(value);
|
|
|
-
|
|
|
+ _index = value;
|
|
|
}
|
|
|
|
|
|
}
|
|
|
@@ -54,8 +55,8 @@ public class InfraredResolution : MonoBehaviour
|
|
|
}
|
|
|
public void Restart()
|
|
|
{
|
|
|
+ //存储一次操作数据
|
|
|
if (InfraredDemo.running) {
|
|
|
- int _index = (int)InfraredDemo._ins.resoution.Get();
|
|
|
InfraredDemo._ins.resolutionRestartApp(_index);
|
|
|
}
|
|
|
|