Exemple #1
0
    void Init()
    {
        activeGroup = menuGroup;

        menuGroup.FadeInstant(true);
        optionsGroup.FadeInstant(false);
        controlsGroup.FadeInstant(false);
    }
Exemple #2
0
    IEnumerator MoveToGroup(FadeCanvasGroup group)
    {
        if (group == activeGroup)
        {
            yield break;
        }

        activeGroup.FadeOut();

        yield return(new WaitForSeconds(activeGroup.fadeDuration));

        group.FadeIn();

        yield return(new WaitForSeconds(group.fadeDuration));

        activeGroup = group;
    }
Exemple #3
0
    protected void Awake()
    {
        m_FadeCanvasGroup = GetComponent <FadeCanvasGroup>();

        Debug.Assert(m_FadeCanvasGroup != null);
    }