|
@@ -18,6 +18,8 @@ namespace GHZLangChao
|
|
|
[SerializeField] private Button ScreenshotBtn2;
|
|
|
[SerializeField] private Button CancelBtn;
|
|
|
[SerializeField] private Button SaveBtn;
|
|
|
+ [SerializeField] private bool[] toggleBoolList;
|
|
|
+ [SerializeField] private GameObject DefaultUI_go;
|
|
|
void Start()
|
|
|
{
|
|
|
y = transform.position.y;
|
|
@@ -27,22 +29,22 @@ namespace GHZLangChao
|
|
|
SaveBtn.onClick.AddListener(ClickSave);
|
|
|
|
|
|
}
|
|
|
- public float y ;
|
|
|
+ private float y;
|
|
|
private void Update()
|
|
|
{
|
|
|
- if(Test) return;
|
|
|
+ if (Test) return;
|
|
|
transform.LookAt(OpenXRCamera.Instance.head);
|
|
|
- transform.localEulerAngles = new Vector3(0, transform.localEulerAngles.y+180f, 0);
|
|
|
+ transform.localEulerAngles = new Vector3(0, transform.localEulerAngles.y + 180f, 0);
|
|
|
Transform Player = OpenXRCamera.Instance.head;
|
|
|
Player.eulerAngles = new Vector3(0, OpenXRCamera.Instance.head.eulerAngles.y, 0);
|
|
|
transform.position = OpenXRCamera.Instance.head.position + Player.forward * 1.3f;
|
|
|
- transform.position = new Vector3(transform.position.x,y,transform.position.z);
|
|
|
+ transform.position = new Vector3(transform.position.x, y, transform.position.z);
|
|
|
}
|
|
|
public void Next()
|
|
|
{
|
|
|
ShowXunJian.Instance.gotoWindow(ScenesManager.SceneType.ShowDH);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
|
|
|
public void back()
|
|
|
{
|
|
@@ -55,7 +57,7 @@ namespace GHZLangChao
|
|
|
}
|
|
|
|
|
|
|
|
|
-#region 按钮点击
|
|
|
+ #region 按钮点击
|
|
|
[SerializeField] private Sprite mScreenshotSprite;
|
|
|
private void ClickScreenshot()
|
|
|
{
|
|
@@ -75,7 +77,7 @@ namespace GHZLangChao
|
|
|
|
|
|
arrayImage[arrayImageIndex].sprite = sprite;
|
|
|
arrayImageIndex++;
|
|
|
- if(arrayImageIndex>=arrayImage.Length)
|
|
|
+ if (arrayImageIndex >= arrayImage.Length)
|
|
|
arrayImageIndex = 0;
|
|
|
|
|
|
|
|
@@ -83,11 +85,29 @@ namespace GHZLangChao
|
|
|
private void ClickCancel()
|
|
|
{
|
|
|
arrayImageIndex--;
|
|
|
- if(arrayImageIndex<0)
|
|
|
- arrayImageIndex = arrayImage.Length-1;
|
|
|
+ if (arrayImageIndex < 0)
|
|
|
+ arrayImageIndex = arrayImage.Length - 1;
|
|
|
arrayImage[arrayImageIndex].sprite = mScreenshotSprite;
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+ public void End()
|
|
|
+ {
|
|
|
+ foreach(bool isOn in toggleBoolList)
|
|
|
+ {
|
|
|
+ if(!isOn)
|
|
|
+ {
|
|
|
+ DefaultUI_go.SetActive(true);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ScenesManager.Instance.showWindow(ScenesManager.SceneType.ShowChoose);
|
|
|
+ }
|
|
|
+
|
|
|
+ public void SetToogleBool(int index)
|
|
|
+ {
|
|
|
+ toggleBoolList[index] = true;
|
|
|
+ }
|
|
|
#endregion
|
|
|
}
|
|
|
}
|