Ejemplo n.º 1
0
        public virtual void InitData(FightStageInfo data)
        {
            if (data == null)
            {
                return;
            }

            _FightStage = data;

            if (_FightStageIcon != null)
            {
                //_FightStageIcon.sprite = ResourceManager.Instance.GetSprite(_FightStage.FigetRecord);
            }

            if (_FightStageName != null)
            {
                _FightStageName.text = _FightStage.FigetRecord.Name;
            }

            if (_FightStageDesc != null)
            {
                _FightStageDesc.text = _FightStage.FigetRecord.Desc;
            }

            if (!data.IsCanFight())
            {
                _DisableObj.SetActive(true);
                _IsCanClick = false;
            }
            else
            {
                _DisableObj.SetActive(false);
                _IsCanClick = true;
            }
        }