コード例 #1
0
    IEnumerator DisplayOptionsAnim()
    {
        yield return(UIAnimation.FadeButton(_button_quit, FadeType.Out, .2f));

        yield return(UIAnimation.FadeButton(_button_play, FadeType.Out, .2f));

        yield return(UIAnimation.FadeButton(_button_options, FadeType.Out, .2f));

        yield return(UIAnimation.Fade(_ggjLogo, FadeType.Out, .2f));

        yield return(UIAnimation.FadeGroup(_names, FadeType.Out, .2f));

        yield return(UIAnimation.Fade(_title, FadeType.Out, .2f));

        _options.SetActive(true);
        _button_return.Select();
        _menu.SetActive(false);

        yield return(UIAnimation.FadeGroup(_controlles, FadeType.In, .2f));

        yield return(UIAnimation.FadeGroup(_sliderMusic, FadeType.In, .2f));

        yield return(UIAnimation.FadeGroup(_sliderSFX, FadeType.In, .2f));

        yield return(UIAnimation.Fade(_options_text, FadeType.In, .2f));

        yield return(UIAnimation.FadeButton(_button_return, FadeType.In, .2f));
    }
コード例 #2
0
    IEnumerator DisplayPauseAnim()
    {
        yield return(UIAnimation.Fade(_fade_back, FadeType.In, .2f, .6f));

        yield return(UIAnimation.Fade(_pause_text, FadeType.In, .3f));

        yield return(UIAnimation.FadeButton(_button_resume, FadeType.In, .3f));

        yield return(UIAnimation.FadeButton(_button_menu, FadeType.In, .3f));
    }
コード例 #3
0
    IEnumerator HidePauseAnim()
    {
        GameManager.inst.states = GameManager.GameStates.playing;
        yield return(UIAnimation.FadeButton(_button_menu, FadeType.Out, .2f));

        yield return(UIAnimation.Fade(_pause_text, FadeType.Out, .2f));

        yield return(UIAnimation.FadeButton(_button_resume, FadeType.Out, .2f));

        yield return(UIAnimation.Fade(_fade_back, FadeType.Out, .2f));

        yield return(new WaitForSeconds(.1f));

        _pause.gameObject.SetActive(false);
    }
コード例 #4
0
    IEnumerator DisplayMenuAnim()
    {
        _menu.SetActive(true);

        yield return(UIAnimation.FadeButton(_button_quit, FadeType.In, .2f));

        yield return(UIAnimation.FadeButton(_button_options, FadeType.In, .2f));

        yield return(UIAnimation.FadeButton(_button_play, FadeType.In, .2f));

        yield return(UIAnimation.Fade(_ggjLogo, FadeType.In, .2f));

        yield return(UIAnimation.FadeGroup(_names, FadeType.In, .2f));

        yield return(UIAnimation.Fade(_title, FadeType.In, .2f));
    }
コード例 #5
0
    IEnumerator HideOptionsAnim()
    {
        yield return(UIAnimation.FadeGroup(_controlles, FadeType.Out, .2f));

        yield return(UIAnimation.FadeGroup(_sliderMusic, FadeType.Out, .2f));

        yield return(UIAnimation.FadeGroup(_sliderSFX, FadeType.Out, .2f));

        yield return(UIAnimation.Fade(_options_text, FadeType.Out, .2f));

        yield return(UIAnimation.FadeButton(_button_return, FadeType.Out, .2f));

        _menu.SetActive(true);
        _button_play.Select();
        _options.SetActive(false);
        yield return(DisplayMenuAnim());
    }
コード例 #6
0
    IEnumerator HideMenuAnim(bool hide = true)
    {
        yield return(UIAnimation.FadeButton(_button_quit, FadeType.Out, .2f));

        yield return(UIAnimation.FadeButton(_button_options, FadeType.Out, .2f));

        yield return(UIAnimation.FadeButton(_button_play, FadeType.Out, .2f));

        yield return(UIAnimation.Fade(_ggjLogo, FadeType.Out, .2f));

        yield return(UIAnimation.FadeGroup(_names, FadeType.Out, .2f));

        yield return(UIAnimation.Fade(_title, FadeType.Out, .2f));

        if (hide)
        {
            _menu.SetActive(false);
        }
    }