コード例 #1
0
        private void SetAssetIcon(string assetCategoryId, string assetValue, UIAssetsIcon icon)
        {
            int num;

            if (int.TryParse(assetCategoryId, out num))
            {
                MasterDataMng.AssetCategory category = (MasterDataMng.AssetCategory)num;
                icon.SetAssetsCategory(category, assetValue);
                icon.SetIcon();
            }
        }
コード例 #2
0
 private void Awake()
 {
     this.leftAssetsIcon   = this.leftAssets.GetComponent <UIAssetsIcon>();
     this.leftAssetsNumber = this.leftAssets.GetComponent <UIAssetsNumber>();
     global::Debug.Assert(null != this.leftAssetsIcon, "左側のアセットアイコンがMissing");
     global::Debug.Assert(null != this.leftAssetsNumber, "左側のアセットラベルがMissing");
     this.rightAssetsIcon   = this.rightAssets.GetComponent <UIAssetsIcon>();
     this.rightAssetsNumber = this.rightAssets.GetComponent <UIAssetsNumber>();
     global::Debug.Assert(null != this.rightAssetsIcon, "右側のアセットアイコンがMissing");
     global::Debug.Assert(null != this.rightAssetsNumber, "右側のアセットラベルがMissing");
 }
コード例 #3
0
 public void Initialize(Action <int, int> action)
 {
     this.assetsIcon   = base.GetComponent <UIAssetsIcon>();
     this.assetsNumber = base.GetComponent <UIAssetsNumber>();
     this.background   = base.GetComponent <UISprite>();
     this.guiCollider  = base.GetComponent <GUICollider>();
     global::Debug.Assert(null != this.assetsIcon, "実行ボタンのアセットアイコンがMissing");
     global::Debug.Assert(null != this.assetsNumber, "実行ボタンのコストラベルがMissing");
     global::Debug.Assert(null != this.background, "実行ボタンの背景がMissing");
     global::Debug.Assert(null != this.guiCollider, "実行ボタンのGUIがMissing");
     this.activeButtonSpriteName = this.background.spriteName;
     this.actionPushed           = action;
 }
コード例 #4
0
 private void SetAssets(UIAssetsIcon icon, UIAssetsNumber number, MasterDataMng.AssetCategory category, string assetsValue)
 {
     icon.SetAssetsCategory(category, assetsValue);
     icon.SetIcon();
     number.SetUserInventoryNumber(category, assetsValue);
 }