提交
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using AibisDream.Kit;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using RainbowArt.CleanFlatUI;
|
||||
|
||||
|
||||
namespace AibisDream
|
||||
{
|
||||
public class EndMenu : Singleton<EndMenu>
|
||||
{
|
||||
// Start is called before the first frame update
|
||||
|
||||
[SerializeField] private GameObject EndMenuPanel;
|
||||
|
||||
void Start()
|
||||
{
|
||||
EndMenuPanel.SetActive(false);
|
||||
|
||||
}
|
||||
public void OpenEndMenu()
|
||||
{
|
||||
EndMenuPanel.SetActive(true);
|
||||
|
||||
}
|
||||
public void CloseEndMenu()
|
||||
{
|
||||
EndMenuPanel.SetActive(false);
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5aba63c6c59d8324d8dbfa6bf13b75e6
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -35,13 +35,13 @@ namespace AibisDream
|
||||
if (runMode == RunMode.SingleScene)
|
||||
{
|
||||
MainUIController.Instance.TVFadeOut(1);
|
||||
GameObject.Find("Menu Canvas").SetActive(false);
|
||||
StartMenu.Instance.HideStartMenu();
|
||||
StartSingleSceneTest();
|
||||
}
|
||||
else if (runMode == RunMode.SaveFile)
|
||||
{
|
||||
MainUIController.Instance.TVFadeOut(1);
|
||||
GameObject.Find("Menu Canvas").SetActive(false);
|
||||
StartMenu.Instance.HideStartMenu();
|
||||
StartCoroutine(LoadSaveFile($"{TestSaveFilePath}/{saveFileName}"));
|
||||
}
|
||||
#else
|
||||
|
||||
@@ -109,13 +109,13 @@ namespace AibisDream
|
||||
}
|
||||
else
|
||||
{
|
||||
yield return UnloadSceneAsync(_currentScene.Value);
|
||||
|
||||
yield return UnloadSceneAsync(_currentScene.Value);
|
||||
yield return MainUIController.Instance.FadeInSync(1);
|
||||
DialogController.Instance.StopDialog();
|
||||
yield return MainUIController.Instance.TVFadeInSync(1);
|
||||
MainUIController.Instance.ShowMainUI();
|
||||
StartMenu.Instance.showStartMenu();
|
||||
StartMenu.Instance.HideEndMenu();
|
||||
yield return MainUIController.Instance.FadeOutSync(1);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,10 +7,12 @@ using UnityEngine.UI;
|
||||
using RainbowArt.CleanFlatUI;
|
||||
|
||||
|
||||
namespace AibisDream {
|
||||
namespace AibisDream
|
||||
{
|
||||
public class StartMenu : Singleton<StartMenu>
|
||||
{
|
||||
[SerializeField] private GameObject startMenuPanel;
|
||||
[SerializeField] private GameObject EndMenuPanel;
|
||||
[SerializeField] private Button startButton;
|
||||
[SerializeField] private Button selectLevelButton;
|
||||
[SerializeField] private Button quitButton;
|
||||
@@ -30,8 +32,8 @@ namespace AibisDream {
|
||||
[SerializeField] private GameObject buttonPrefab;
|
||||
|
||||
[SerializeField] private string surveyURL = "https://wj.qq.com/s2/15348910/3c8c/"; // 替换为你的问卷链接
|
||||
|
||||
[SerializeField] private string qqURL ="https://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=XQFpOqRb1_zqkCdR2bLT3kHb11XzZ54T&authKey=w8G8qxzecnATXDOec1Ybv8LA%2FTTN8gQkyegvbK%2FUZ9m90WxggTjXy2U6%2FJesWJF3&noverify=0&group_code=325268983";
|
||||
[SerializeField] private string BugSurveyURL = "https://wj.qq.com/s2/18309384/e356/";
|
||||
[SerializeField] private string qqURL = "https://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=XQFpOqRb1_zqkCdR2bLT3kHb11XzZ54T&authKey=w8G8qxzecnATXDOec1Ybv8LA%2FTTN8gQkyegvbK%2FUZ9m90WxggTjXy2U6%2FJesWJF3&noverify=0&group_code=325268983";
|
||||
|
||||
private void OnEnable()
|
||||
{
|
||||
@@ -47,6 +49,8 @@ namespace AibisDream {
|
||||
startButton?.onClick.RemoveListener(StartGame);
|
||||
selectLevelButton?.onClick.RemoveListener(SelectLevel);
|
||||
quitButton?.onClick.RemoveListener(QuitGame);
|
||||
surveyButton?.onClick.RemoveListener(OpenLink);
|
||||
followButton?.onClick.RemoveListener(OpenQQLink);
|
||||
}
|
||||
|
||||
public void StartGame()
|
||||
@@ -59,20 +63,14 @@ namespace AibisDream {
|
||||
SwitchToLevelTab();
|
||||
}
|
||||
|
||||
public void OpenSetting()
|
||||
{
|
||||
MainUIController.Instance.HideMainUI();
|
||||
showStartMenu();
|
||||
|
||||
}
|
||||
public void BackToMenu()
|
||||
{
|
||||
SceneLoader.Instance.RestartGame();
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void SwitchToLevelTab()
|
||||
{
|
||||
{
|
||||
sceneSelection.ShowSceneSelection(GameLoopManager.Instance.totalSceneSos);
|
||||
}
|
||||
|
||||
@@ -82,19 +80,24 @@ namespace AibisDream {
|
||||
levelTab.SetActive(false);
|
||||
}
|
||||
public void OpenLink()
|
||||
{
|
||||
Application.OpenURL(surveyURL);
|
||||
}
|
||||
{
|
||||
Application.OpenURL(surveyURL);
|
||||
}
|
||||
public void OpenBugLink()
|
||||
{
|
||||
Application.OpenURL(BugSurveyURL);
|
||||
}
|
||||
public void OpenQQLink()
|
||||
{
|
||||
Application.OpenURL(qqURL);
|
||||
}
|
||||
{
|
||||
Application.OpenURL(qqURL);
|
||||
}
|
||||
|
||||
|
||||
public void QuitGame()
|
||||
{
|
||||
Application.Quit();
|
||||
}
|
||||
|
||||
|
||||
public void HideStartMenu()
|
||||
{
|
||||
startMenuPanel.SetActive(false);
|
||||
@@ -103,6 +106,14 @@ namespace AibisDream {
|
||||
{
|
||||
startMenuPanel.SetActive(true);
|
||||
}
|
||||
public void OpenEndMenu()
|
||||
{
|
||||
EndMenuPanel.SetActive(true);
|
||||
}
|
||||
public void HideEndMenu()
|
||||
{
|
||||
EndMenuPanel.SetActive(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user