1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
| using UnityEngine;
| using UnityEngine.UI;
| using DG.Tweening;
|
| /**
| * 无尽模式掉落道具item脚本,主要用于刷新icon和品质底图
| * @Author: chenxin
| * @Date: 2020-10-22 14:04:33
| */
| namespace KTGMGemClient
| {
| public class EndlessPropIcon : MonoBehaviour
| {
| public Image Bg;
|
| public Image Icon;
|
| public void SetIcon(Sprite sp)
| {
| Icon.sprite = sp;
| Icon.SetNativeSize();
| Icon.transform.localScale = Vector3.zero;
| Icon.transform.DOScale(Vector3.one, 0.1f);
| }
|
| public void SetBg(Sprite sp)
| {
| Bg.sprite = sp;
| }
| }
| }
|
|