| | |
| | | [SerializeField] Image awardIcon; |
| | | [SerializeField] Text awardCnt; |
| | | [SerializeField] UIEffectPlayer taskEffect; |
| | | |
| | | [SerializeField] UIEffectPlayer lvUPEffect; |
| | | |
| | | //关卡 |
| | | [SerializeField] Button bossBtn; |
| | |
| | | UIManager.Instance.OpenWindow<MainBossEnterWin>(); |
| | | } |
| | | |
| | | int lastLV = 0; |
| | | void PlayerDataRefresh(PlayerDataType type) |
| | | { |
| | | switch (type) |
| | |
| | | ShowExp(); |
| | | break; |
| | | case PlayerDataType.LV: |
| | | if (lastLV != PlayerDatas.Instance.baseData.LV) |
| | | { |
| | | lastLV = PlayerDatas.Instance.baseData.LV; |
| | | lvUPEffect.Play(); |
| | | } |
| | | playerLevelText.text = PlayerDatas.Instance.baseData.LV.ToString(); |
| | | break; |
| | | case PlayerDataType.ExAttr1: |