private IEnumerator LoadStage() { yield return(StageLoad()); fade.FadeOutEvent(0.5f); playerController.GetSetisActive = true; }
public void StageMenuOpenCloase(bool isopen) { stagespawn.StageSet(); isActive = isopen; stagemenu.SetActive(isopen); mainCamera.gameObject.SetActive(isopen); fade.FadeOutEvent(0.2f); }
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(); } }