IEnumerator GoalEvent() { const float m_fadeTime = 1; EffectSpawn(warpEffect); RewardGetEvent(); PlayerController.playerController.ControlStop(); StartCoroutine(PlayerMove()); for (int i = 30; i > 0; i--) { Camera.main.fieldOfView -= 1.5f; yield return(null); } EffectSpawn(warpParticle); fadeInOut.FadeInEvent(m_fadeTime); for (float i = 10; i > 0; i--) { //gameObject.SetActive(false); Camera.main.fieldOfView += 4.5f; yield return(null); } yield return(new WaitForSeconds(m_fadeTime)); //gameObject.SetActive(true); transform.position = Vector3.zero; StartCoroutine(LastAct()); }
IEnumerator SceneMove() { const float m_time = 0.5f; const string m_loadScene = "PlayStage"; loadstage.CloneScriptableObject(selectStageData); fadeInOut.FadeInEvent(m_time); yield return(new WaitForSeconds(m_time)); SceneManager.LoadScene(m_loadScene); }
IEnumerator NameInput() { NameInputWindow.SetActive(false); fade.FadeInEvent(0); talkControl.TalkSet("[%p]ですね。了解しました。", 1, 1, 1, true); for (float i = 1; i > 0; i -= 0.1f) { image.color = new Color(0, 0, 0, i); yield return(null); } fade.FadeOutEvent(4.5f); yield return(new WaitForSeconds(4.5f)); talkControl.TalkSet("これからよろしくお願いします。[%p]。", 1, 1, 1, true); Destroy(gameObject); }
IEnumerator MenuOpen(GameObject openObject) { const float m_fadeTime = 0.2f; fadeInOut.FadeInEvent(m_fadeTime); yield return(new WaitForSeconds(m_fadeTime)); openObject.SetActive(true); if (nowOpenMenu) { nowOpenMenu.SetActive(false); } fadeInOut.FadeOutEvent(m_fadeTime); yield return(new WaitForSeconds(m_fadeTime)); nowOpenMenu = openObject; if (saveScriptableObject2.isChanged) { saveData.Save(); } }