Пример #1
0
        public void SetWork(WorkData data)
        {
            Data = data;

            TitleText.text       = data.Title;
            DescriptionText.text = data.Description;
            for (int i = 0; i < 5; i++)
            {
                if (i < Data.RewardCoeff[0])
                {
                    MoneyDisp[i].SetActive(true);
                }
                if (i < Data.RewardCoeff[1])
                {
                    HonorDisp[i].SetActive(true);
                }
                if (i < Data.RewardCoeff[2])
                {
                    FanDisp[i].SetActive(true);
                }
            }
            for (int i = 0; i < Data.CheckAbility.Length; i++)
            {
                if (Data.CheckAbility[i] == true)
                {
                    ChkAbilDisp[i].SetActive(true);
                }
            }
            for (int i = 0; i < Data.RequireAbility.Length; i++)
            {
                if (Data.RequireAbility[i] > 0)
                {
                    ReqAbilDisp[i].text.text = Data.RequireAbility[i].ToString();
                    ReqAbilDisp[i].SetActive(true);
                }
            }
            Data.IdolSlot.Restriction = Data.RequireAbility;
        }
Пример #2
0
 public void CreateWorkDatas()
 {
     IngameManager.Instance.Data.Work = WorkData.Generate(3).ToArray();
 }