Example #1
0
    void OpenBuyItemMenu(int index)
    {
        mCurrentItem = mItems[index];
        print ("i " + index + " n " + mCurrentItem.name);

        // cannot unlock more - ABORT! ABORT!!
        if (!mCurrentItem.CanUnlockItem())
        {
            mCurrentItem = null;
            return;
        }

        MenuCamera.Instance.PopupBuyMenu().Open(mItems[index].PreviewObject());
    }