//事件協程 static IEnumerator EventCoroutine() { Go_Scenario.SetActive(true); yield return(new WaitForSeconds(1f)); Go_Feedback.SetActive(true); yield return(new WaitForSeconds(2f)); ShowResultUI(false); //隱藏結果UI CharaDataUI.ShowCharas(true); //顯示腳色資料介面 //如果有戰鬥就進入戰鬥沒有則繼續冒險 if (Data.CheckFight()) { FightScene.AmbushEvent(MonsterGetter.GetMonsterDicsFromEvent(Data.MonsterEvent));//埋伏事件 } else { FightScene.KeepAdventure();//繼續冒險 } }
/// <summary> /// 取消按鈕被按下 /// </summary> public void Click_Cancel() { CharaDataUI.ShowCharas(true); //顯示腳色資料介面 ShowInvestigateUI(false); //隱藏調查介面 FightScene.KeepAdventure(); //繼續冒險 }
/// <summary> /// 結束消滅敵方標題 /// </summary> public void EndShowClearTilte() { //繼續冒險 FightScene.KeepAdventure(); }
/// <summary> /// 確認按鈕被按下 /// </summary> public void Click_Confirm() { CharaDataUI.ShowCharas(true); //顯示腳色資料介面 ShowCampUI(false); //隱藏紮營介面 FightScene.KeepAdventure(); //繼續冒險 }