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"); }
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; }
private void SetAssets(UIAssetsIcon icon, UIAssetsNumber number, MasterDataMng.AssetCategory category, string assetsValue) { icon.SetAssetsCategory(category, assetsValue); icon.SetIcon(); number.SetUserInventoryNumber(category, assetsValue); }