Example #1
0
    public void OnSelectionChange(int index, string text)
    {
        if (null != mExpansionMenu && mExpansionMenu != this)
        {
            mExpansionMenu.PlayExpansion(false);
        }

        if (-1 == index)
        {
            if (this == mExpansionMenu)
            {
                PlayExpansion(false);
                mExpansionMenu = null;
            }
            else
            {
                PlayExpansion(true);
                mExpansionMenu = this;
            }
        }
        else
        {
            PlayExpansion(false);
            mExpansionMenu = null;
            if (null != SelectedEvent)
            {
                SelectedEvent(index, text);
            }
        }
    }
Example #2
0
 public void SetInfo(string content, SimpleMenu_N menu, int index)
 {
     mTextLabel.text = content;
     //mMenu = menu;
     //mIndex = index;
 }