chenxin
2020-10-22 e28fd5cc81c68db8efcab33ea526643aae5e2c19
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
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
 
/**
 * 无尽模式掉落道具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();
        }
 
        public void SetBg(Sprite sp)
        {
            Bg.sprite = sp;
        }
    }
}