public void SwitchStatus(Constants.DETECT_STATUS nextStatus) { Debug.Log("next status:" + nextStatus); switch (nextStatus) { case Constants.DETECT_STATUS.FREE: ps.SwitchTo_VerifyIterative("Function_Container"); charaContainer.SetActive(true); cancelButton.SetActive(false); break; case Constants.DETECT_STATUS.DIALOG: ps.SwitchTo_VerifyIterative("Dialog_Container"); charaContainer.SetActive(false); cancelButton.SetActive(true); break; case Constants.DETECT_STATUS.INVEST: ps.SwitchTo_VerifyIterative("InvestButton_Container"); charaContainer.SetActive(false); cancelButton.SetActive(true); break; case Constants.DETECT_STATUS.MOVE: ps.SwitchTo_VerifyIterative("Move_Container"); charaContainer.SetActive(false); cancelButton.SetActive(true); break; default: break; } this.status = nextStatus; DataManager.GetInstance().SetInTurnVar("侦探模式", nextStatus); }
private void Update() { //按下左键则跳过 if (Input.GetMouseButton(0)) { sm.StopBGM(); StopAllCoroutines(); ps.SwitchTo_VerifyIterative("Title_Panel"); } }
/// <summary> /// 【按钮】点击警告框的确认 /// </summary> public void WarningComfirm() { //锁定警告框 warningContainer.transform.Find("Block_Container").gameObject.SetActive(true); switch (currentMode) { case Constants.WarningMode.Title: //StartCoroutine(FadeOut(warningContainer)); warningContainer.SetActive(false); StartCoroutine(FadeOutP(() => { ps.SwitchTo_VerifyIterative("Title_Panel"); })); break; case Constants.WarningMode.Quit: Application.Quit(); break; case Constants.WarningMode.Save: slm.SaveData(); warningContainer.SetActive(false); break; case Constants.WarningMode.Load: slm.LoadData(); break; case Constants.WarningMode.Delete: slm.DeleteData(); warningContainer.SetActive(false); break; default: break; } }
public void ReturnTitle() { sm.StopBGM(); sm.StopSE(); sm.StopVoice(); ps.SwitchTo_VerifyIterative("Title_Panel"); }
public ReasoningNode(DataManager manager, GameObject root, PanelSwitch ps, string eventName, string status) : base(manager, root, ps) { isnew = status == "NEW"; isend = status == "END"; Init(eventName); ps.SwitchTo_VerifyIterative("Avg_Panel", uiManager.OpenSelection); }
public DetectJudgeNode(DataManager manager, GameObject root, PanelSwitch ps, string eventName, AvgPanelSwitch avgps) : base(manager, root, ps) { detectManager = DetectManager.GetInstance(); detectEvent = detectManager.LoadEvent(eventName); factory = NodeFactory.GetInstance(); if (detectManager.IsCurrentEventFinished()) { Update(); } else { ps.SwitchTo_VerifyIterative("Invest_Panel", Update); } }
/// <summary> /// CAST表 /// </summary> private IEnumerator OpenAnimate() { sm.SetBGM("ed"); yield return(new WaitForSeconds(1f)); //预设总时长 float tall = 60f; //初始位置 float t = -540; while (t < maxHeight) { t = Mathf.MoveTowards(t, maxHeight, maxHeight / tall * Time.deltaTime); castTable.transform.localPosition = new Vector3(0, t); yield return(null); } yield return(new WaitForSeconds(5f)); //TODO:等待点击 StopAllCoroutines(); ps.SwitchTo_VerifyIterative("Title_Panel"); }
private IEnumerator OpenAnimate() { //运行加载? StartCoroutine(LoadText()); DataLoad(); yield return(new WaitForSeconds(0.5f)); //淡入游戏制作组Logo yield return(StartCoroutine(FadeInLogo(logoG))); yield return(new WaitForSeconds(1f)); //淡出 yield return(StartCoroutine(FadeOutLogo(logoG))); yield return(new WaitForSeconds(0.5f)); //淡入学校Logo yield return(StartCoroutine(FadeInLogo(logoS))); yield return(new WaitForSeconds(1f)); //淡出 yield return(StartCoroutine(FadeOutLogo(logoS))); yield return(new WaitForSeconds(0.5f)); //淡入其他组Logo //yield return StartCoroutine(FadeInLogo(logoT)); //yield return new WaitForSeconds(1f); //淡出 //yield return StartCoroutine(FadeOutLogo(logoT)); //yield return new WaitForSeconds(0.5f); StopAllCoroutines(); //切换至标题画面 ps.SwitchTo_VerifyIterative("Title_Panel"); }
/// <summary> /// 【按钮】点击警告框的确认 /// </summary> public void WarningComfirm() { if (Input.GetMouseButtonUp(1)) { return; } switch (currentMode) { case WarningMode.Title: //StartCoroutine(FadeOut(warningContainer)); StartCoroutine(FadeOutP()); ps.SwitchTo_VerifyIterative("Title_Panel"); break; case WarningMode.Quit: Application.Quit(); break; case WarningMode.Save: SaveData(); warningContainer.SetActive(false); break; case WarningMode.Load: DataManager.GetInstance().Load(saveID); //TODO:执行切换界面 LoadSwtich(); break; case WarningMode.Delete: DataManager.GetInstance().Delete(saveID); break; default: break; } }
public NegotiateNode(DataManager manager, GameObject root, PanelSwitch ps, string negotiateEvent) : base(manager, root, ps) { Init(negotiateEvent); ps.SwitchTo_VerifyIterative("Avg_Panel", uiManager.OpenUI); }
public EduNode(DataManager manager, GameObject root, PanelSwitch ps) : base(manager, root, ps) { ps.SwitchTo_VerifyIterative("Edu_Panel"); }
private IEnumerator OpenAnimate(int step) { currentStep = step; switch (step) { case 0: //运行加载? DataLoad(); yield return(StartCoroutine(LoadText())); yield return(new WaitForSeconds(0.5f)); StartCoroutine(OpenAnimate(1)); break; case 1: //淡入游戏制作组Logo yield return(StartCoroutine(FadeInLogo(logo1))); yield return(new WaitForSeconds(1.5f)); StartCoroutine(OpenAnimate(2)); break; case 2: //淡出 yield return(StartCoroutine(FadeOutLogo(logo1))); yield return(new WaitForSeconds(0.5f)); StartCoroutine(OpenAnimate(3)); break; case 3: //淡入学校Logo yield return(StartCoroutine(FadeInLogo(logo2))); yield return(new WaitForSeconds(1.5f)); StartCoroutine(OpenAnimate(4)); break; case 4: //淡出 yield return(StartCoroutine(FadeOutLogo(logo2))); yield return(new WaitForSeconds(0.5f)); StartCoroutine(OpenAnimate(7)); break; case 5: //淡入其他组Logo //yield return StartCoroutine(FadeInLogo(logo3)); //yield return new WaitForSeconds(1f); StartCoroutine(OpenAnimate(6)); break; case 6: //淡出 //yield return StartCoroutine(FadeOutLogo(logo3)); //yield return new WaitForSeconds(0.5f); StartCoroutine(OpenAnimate(7)); break; case 7: StopAllCoroutines(); clickCon.SetActive(false); //切换至标题画面 ps.SwitchTo_VerifyIterative("Title_Panel"); //this.transform.gameObject.SetActive(false); break; } }
public MapNode(DataManager manager, GameObject root, PanelSwitch ps) : base(manager, root, ps) { Init(); ps.SwitchTo_VerifyIterative("Map_Panel"); }
public EnquireNode(DataManager manager, GameObject root, PanelSwitch ps, string eventName) : base(manager, root, ps) { Init(eventName); ps.SwitchTo_VerifyIterative("Avg_Panel", uiManager.WheelStart); }