Пример #1
0
 public override void SetupData(Resource _data = null, List <Resource> data = null, string message = null, Action noCallBack = null, Action yesCallBack = null)
 {
     currencyTxt.text = Localize.LocalizeWithKey("currency");
     decribeTxt.text  = Localize.LocalizeWithKey("decribe_" + _data.TYPE + "_" + _data.ID);
     icon.sprite      = LoadResourceController.LoadIconWithMoneyType(_data.ID);
     this.noCallBack  = noCallBack;
     this.yesCallBack = yesCallBack;
 }
Пример #2
0
    public void Init(Resource resource, DailyRewardElementData data)
    {
        Resource = resource;
        //backGround.sprite = LoadResourceController.LoadBackgroundResource(_resource.TYPE, _resource.ID);
        icon.sprite  = LoadResourceController.LoadIconWithMoneyType(Resource.ID);
        day.text     = data.day.ToString();
        value.text   = resource.VALUE.ToString();
        nameTxt.text = Localize.LocalizeWithKey("resource_" + Resource.ID);

        SetElementState(data);
    }