Пример #1
0
    private IEnumerator LoadStage()
    {
        yield return(StageLoad());

        fade.FadeOutEvent(0.5f);
        playerController.GetSetisActive = true;
    }
Пример #2
0
 public void StageMenuOpenCloase(bool isopen)
 {
     stagespawn.StageSet();
     isActive = isopen;
     stagemenu.SetActive(isopen);
     mainCamera.gameObject.SetActive(isopen);
     fade.FadeOutEvent(0.2f);
 }
Пример #3
0
    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);
    }
Пример #4
0
    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();
        }
    }