private void Awake() { this._iconGO = this.transform.Find("Icon").gameObject; this._labelGO = this.transform.Find("Label").gameObject; this._buttonMaskGO = this.transform.Find("ButtonMask").gameObject; this._icon = this._iconGO.GetComponent <Image>(); this._labelTMP = this._labelGO.GetComponent <TextMeshProUGUI>(); this._buttonMask = this._buttonMaskGO.GetComponent <ModelItemButtonMask>(); this._buttonMask.OnClick = this.OnClick; }
private void Awake() { this._rectTrans = this.transform.GetComponent <RectTransform>(); this._iconGO = this.transform.Find("Icon").gameObject; this._labelGO = this.transform.Find("Label").gameObject; this._buttonMaskGO = this.transform.Find("ButtonMask").gameObject; this._progressBarGO = this.transform.Find("ProgressBar").gameObject; this._icon = this._iconGO.GetComponent <Image>(); this._labelTMP = this._labelGO.GetComponent <TextMeshProUGUI>(); this._buttonMask = this._buttonMaskGO.GetComponent <ModelItemButtonMask>(); this._progressBarRectTrans = this._progressBarGO.GetComponent <RectTransform>(); this._buttonMask.OnClick = this.OnClick; SetBarPercentage(0); }