Exemplo n.º 1
0
 void PanelAnimation()
 {
     m_nowActivityEnum = NOW_ACTIVITY.ANIMATING;
     m_nowActivity     = null;
     StartCoroutine(Move(m_map["SearchMemo"], Vector2.up * 200f, 0.2f, 0f, null));
     StartCoroutine(Move(m_map["SearchInput"], Vector2.down * 450, 0.2f, 0f, SearchActivityEndProcess));
 }
Exemplo n.º 2
0
    void BackToSearchError()
    {
        m_nowActivityEnum     = NOW_ACTIVITY.ANIMATING;
        m_OnPressedEnter      = null;
        m_OnPressedEscape     = null;
        m_OnPressedHorizontal = null;
        m_nowActivity         = SearchActivity;
        StartCoroutine(Move(m_map["SelectMemo"], Vector2.up * 140f, 0.2f, 0.5f, () => {
            m_map["SelectMemo"].SetActive(false);
        }));
        StartCoroutine(Move(m_map["SelectMemo2"], Vector2.up * 140f, 0.2f, 0.5f, () => {
            m_map["SelectMemo2"].SetActive(false);
        }));
        StartCoroutine(Move(m_map["LoadingPanel"], Vector2.left * 1024f, 0.2f, 0.8f, () => {
            m_map["LoadingText"].SetActive(false);
            m_map["ErrorText"].SetActive(false);
            m_map["LoadingPanel"].SetActive(false);
            StartCoroutine(SpreadHoriz(m_map["SelectPanel"], 1f, 0.2f, 0.5f, () => {
                m_searchKeyword    = null;
                m_desc             = m_title = null;
                m_nowItemIndex     = 0;
                m_autoActive       = null;
                m_searchAtOnceTrig = m_searchFutureTrig = false;

                TitleActivityEndProcess();
            }));
        }));
    }
Exemplo n.º 3
0
    void SelectAnimation()
    {
        m_map["LoadingPanel"].SetActive(false);
        m_map["LoadingText"].SetActive(false);
        m_map["LeftArrow"].SetActive(true);
        m_map["BackKey"].SetActive(true);
        m_map["RightArrow"].SetActive(true);
        m_map["NameLine"].SetActive(true);
        m_map["DescLine"].SetActive(true);

        m_title = m_map["NameLine"].GetComponentsInChildren <Text>()[1];
        m_desc  = m_map["DescLine"].GetComponentsInChildren <Text>()[1];

        m_nowActivityEnum = NOW_ACTIVITY.ANIMATING;
        m_nowActivity     = null;
        ItemsActive(true);
        StartCoroutine(ItemMove(Vector2.left * 760f, 0.1f, 0.2f, 0.5f, null));
        StartCoroutine(ArrayMove(new List <GameObject>()
        {
            m_map["LeftArrow"], m_map["BackKey"], m_map["RightArrow"]
        }, Vector2.up * 340f, 0.2f, 0.2f, 1f, () => {
            m_nowActivityEnum     = NOW_ACTIVITY.SELECT;
            m_OnPressedEnter      = GameStart;
            m_OnPressedEscape     = BackToSearch;
            m_OnPressedHorizontal = Slide;
        }));
        StartCoroutine(SpreadHoriz(m_map["NameLine"], 60f, 0.4f, 2f, () => {
            StartCoroutine(Move(m_map["NameLine"], Vector2.left * 1024, 0.2f, 0.5f));
        }));
        StartCoroutine(SpreadVerti(m_map["DescLine"], 300f, 0.4f, 2.2f, () => {
            StartCoroutine(Move(m_map["DescLine"], Vector2.up * 768, 0.2f, 0.5f));
        }));
    }
Exemplo n.º 4
0
 void TitleFlickAnimation()
 {
     m_nowActivityEnum = NOW_ACTIVITY.ANIMATING;
     m_OnPressedAnyKey = null;
     m_OnPressedEscape = null;
     StartCoroutine(Flicking(m_map["Title"], 1f, TitleMoveAnimation));
 }
Exemplo n.º 5
0
 void SearchActivity()
 {
     m_nowActivityEnum     = NOW_ACTIVITY.SEARCH;
     m_nowActivity         = null;
     m_OnPressedAnyKey     = GiveFocusToSearchInput;
     m_OnPressedEnter      = InvokeSearchButtonCallBack;
     m_OnPressedEscape     = BackToTitle;
     m_OnPressedHorizontal = null;
     m_OnPressedVertical   = null;
     m_autoActive          = null;
 }
Exemplo n.º 6
0
 void ExitActivity()
 {
     m_nowActivityEnum     = NOW_ACTIVITY.ANIMATING;
     m_nowActivity         = null;
     m_OnPressedAnyKey     = null;
     m_OnPressedEnter      = null;
     m_OnPressedEscape     = ExitActivity;
     m_OnPressedHorizontal = null;
     m_OnPressedVertical   = null;
     m_autoActive          = null;
     StartCoroutine(Exit());
 }
Exemplo n.º 7
0
    void SelectActivity()
    {
        m_nowActivityEnum     = NOW_ACTIVITY.SELECT;
        m_nowActivity         = null;
        m_OnPressedAnyKey     = null;
        m_OnPressedEnter      = null;
        m_OnPressedEscape     = null;
        m_OnPressedHorizontal = null;
        m_OnPressedVertical   = null;
        m_autoActive          = null;

        ShowLoadingAnimation();
    }
Exemplo n.º 8
0
 void GameStart()
 {
     m_itemMoveTrig    = true;
     m_nowActivityEnum = NOW_ACTIVITY.ANIMATING;
     m_BG.GetComponent <Animator>().Play("Action");
     m_nowActivity         = null;
     m_OnPressedAnyKey     = null;
     m_OnPressedEnter      = null;
     m_OnPressedEscape     = ExitActivity;
     m_OnPressedHorizontal = null;
     m_OnPressedVertical   = null;
     m_autoActive          = null;
     StartCoroutine(LoadScene());
 }
Exemplo n.º 9
0
    void TitleActivity()
    {
        m_nowActivityEnum     = NOW_ACTIVITY.TITLE;
        m_nowActivity         = null;
        m_OnPressedAnyKey     = TitleFlickAnimation;
        m_OnPressedEnter      = null;
        m_OnPressedEscape     = ExitActivity;
        m_OnPressedHorizontal = null;
        m_OnPressedVertical   = null;
        m_autoActive          = null;

        m_map["Title"].SetActive(true);
        ItemsActive(false);
    }
Exemplo n.º 10
0
    public void BackToSearch()
    {
        if (m_OnPressedEscape == null)
        {
            return;
        }
        m_nowActivityEnum     = NOW_ACTIVITY.ANIMATING;
        m_OnPressedEnter      = null;
        m_OnPressedEscape     = null;
        m_OnPressedHorizontal = null;
        m_nowActivity         = SearchActivity;

        StartCoroutine(Move(m_map["NameLine"], Vector2.right * 1024, 0.2f, 0.5f, () => {
            StartCoroutine(SpreadHoriz(m_map["NameLine"], 1f, 0.4f, 0.5f));
        }));
        StartCoroutine(Move(m_map["DescLine"], Vector2.down * 768, 0.2f, 0.5f, () => {
            StartCoroutine(SpreadVerti(m_map["DescLine"], 1f, 0.4f, 0.5f));
        }));
        StartCoroutine(ArrayMove(new List <GameObject>()
        {
            m_map["RightArrow"], m_map["BackKey"], m_map["LeftArrow"]
        }, Vector2.down * 340f, 0.2f, 0.2f, 1f));

        StartCoroutine(SliderReturn(() =>
        {
            StartCoroutine(ItemMove(Vector2.right * 760f, 0.1f, 0.1f, 0.5f, () => {
                StartCoroutine(Move(m_map["SelectMemo"], Vector2.up * 140f, 0.2f, 0.5f, () => {
                    m_map["SelectMemo"].SetActive(false);
                }));
                StartCoroutine(Move(m_map["SelectMemo2"], Vector2.up * 140f, 0.2f, 0.55f, () => {
                    m_map["SelectMemo2"].SetActive(false);
                }));

                StartCoroutine(SpreadHoriz(m_map["SelectPanel"], 1f, 2f, 0.2f, () => {
                    TitleActivityEndProcess();
                }));

                for (int i = 0; i < 15; i++)
                {
                    m_items[i].Hide();
                    m_items[i].SafeDelete();
                }
                ItemsActive(false);
                if (m_desc != null)
                {
                    m_desc.text = null;
                }
                if (m_title != null)
                {
                    m_title.text = null;
                }
                m_searchKeyword    = null;
                m_desc             = m_title = null;
                m_nowItemIndex     = 0;
                m_autoActive       = null;
                m_searchAtOnceTrig = m_searchFutureTrig = false;

                m_map["LeftArrow"].SetActive(false);
                m_map["BackKey"].SetActive(false);
                m_map["RightArrow"].SetActive(false);
                m_map["NameLine"].SetActive(false);
                m_map["DescLine"].SetActive(false);
            }));
        }));
    }