| | |
| | |
|
| | | [SerializeField] Button m_SkillExpertBtn;
|
| | | [SerializeField] SkillExpertWidget m_SkillExpert;
|
| | | [SerializeField] RedpointBehaviour m_SelectRedpoint;
|
| | | [SerializeField] SkillExpertBehaviour[] m_SkillExpertBehaviours;
|
| | |
|
| | | [SerializeField] Button m_LevelUp;
|
| | |
| | | if (model.TryGetSkill(model.selectSkill, out skill))
|
| | | {
|
| | | m_LevelRedpoint.redpointId = skill.levelUpRedpoint.id;
|
| | | m_SelectRedpoint.redpointId = skill.expertSelectRedpoint.id;
|
| | |
|
| | | var config = skill.GetSkillConfig(skill.level);
|
| | | if (config == null)
|
| | |
| | |
|
| | | if ((int)rate != lastRate)
|
| | | {
|
| | | m_Income.text = Language.Get("MonthWeekIncomeRate", rate);
|
| | | m_Income.text = Language.Get("MonthWeekIncomeRate", ((int)(rate * 10) / 10.0f).ToString("0.#"));
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | }
|
| | | }
|
| | | }
|
| | | return (float)Math.Round((float)income / money, 2);
|
| | | return (float)income / money;
|
| | | }
|
| | |
|
| | | public bool TryGetItems(int type, int id, out List<Item> items)
|