public void Initialize(ItemlistModel itemStoreModel, ItemlistManager checkUtils)
    {
        mModel = itemStoreModel;
        mItemlistCheckUtils = checkUtils;
        List <UIButton> list     = new List <UIButton>();
        ItemlistModel   listItem = checkUtils.GetListItem(57);

        if (listItem != null && 0 < listItem.Count)
        {
            if (4 <= listItem.Count)
            {
                mButton_Plan.isEnabled = true;
                list.Add(mButton_Plan);
            }
            else
            {
                mButton_Plan.isEnabled = false;
            }
            list.Add(mButton_Screw);
            list.Add(mButton_Materials);
            mFocasableButtons = list.ToArray();
            ChangeFocus(mFocasableButtons[0], needSe: false);
        }
        ((Component)mButton_Plan.transform.parent.FindChild("Label_Message")).GetComponent <UILabel>().text = "「資源」や「改修資材」に交換出来ます。\nまた、勲章4個を「改装設計図」1枚に交換可能です。";
    }
 public void Release()
 {
     mModel = null;
     mItemlistCheckUtils = null;
     mFocusButton        = null;
     mFocasableButtons   = null;
 }
Exemplo n.º 3
0
 public void Clean()
 {
     this.mItemListManager = null;
     this.mKeyController   = null;
     this.mItemList.Clean();
     this.mItemListChildDetai.Clean();
     this.mStateStack.Clear();
 }
Exemplo n.º 4
0
 private void OnDestroy()
 {
     UserInterfacePortManager.ReleaseUtils.Releases(ref this.mTextures_Preload, false);
     UserInterfacePortManager.ReleaseUtils.Release(ref this.mAudioClip_SE002, false);
     UserInterfacePortManager.ReleaseUtils.Release(ref this.mAudioClip_CommonCancel1, false);
     this.mAudioClip_SceneBGM       = null;
     this.mUIItemListManager        = null;
     this.mUIItemStoreManager       = null;
     this.mUIItemAkashi             = null;
     this.mTransform_SwitchViewRoot = null;
     this.__ItemlistManager__       = null;
     this.__ItemStoreManager__      = null;
     this.mKeyController            = null;
 }
Exemplo n.º 5
0
 public void Initialize(ItemlistManager manager)
 {
     this.mItemListManager = manager;
     ItemlistModel[] models = this.mItemListManager.HaveItems.ToArray();
     this.mItemList.Initialize(models);
 }