| | |
| | | //头像模块(支持帧动画和特效)
|
| | | public class AvatarCell : MonoBehaviour
|
| | | {
|
| | | public float scale = 1.0f;
|
| | |
|
| | | private void Awake()
|
| | | {
|
| | |
| | |
|
| | | }
|
| | | ImageEx m_BgImage;
|
| | | public ImageEx bgImage
|
| | | private ImageEx bgImage
|
| | | {
|
| | | get
|
| | | {
|
| | |
| | | }
|
| | |
|
| | | ImageEx m_AvatarImage;
|
| | | public ImageEx avatarImage
|
| | | private ImageEx avatarImage
|
| | | {
|
| | | get
|
| | | {
|
| | |
| | | }
|
| | |
|
| | | ImageEx m_AvatarFrameImage;
|
| | | public ImageEx avatarFrameImage
|
| | | private ImageEx avatarFrameImage
|
| | | {
|
| | | get
|
| | | {
|
| | |
| | | }
|
| | |
|
| | | UIFrame m_AvatarUIFrame;
|
| | | public UIFrame avatarUIFrame
|
| | | private UIFrame avatarUIFrame
|
| | | {
|
| | | get
|
| | | {
|
| | |
| | | }
|
| | |
|
| | | UIFrame m_AvatarFrameUIFrame;
|
| | | public UIFrame avatarFrameUIFrame
|
| | | private UIFrame avatarFrameUIFrame
|
| | | {
|
| | | get
|
| | | {
|
| | |
| | | }
|
| | |
|
| | | UIEffect m_AvatarUIEffect;
|
| | | public UIEffect avatarUIEffect
|
| | | private UIEffect avatarUIEffect
|
| | | {
|
| | | get
|
| | | {
|
| | |
| | | }
|
| | |
|
| | | UIEffect m_AvatarFrameUIEffect;
|
| | | public UIEffect avatarFrameUIEffect
|
| | | private UIEffect avatarFrameUIEffect
|
| | | {
|
| | | get
|
| | | {
|
| | |
| | | prefabRect.anchorMin = new Vector2(0.5f, 0.5f);
|
| | | prefabRect.anchorMax = new Vector2(0.5f, 0.5f);
|
| | | prefabRect.sizeDelta = new Vector2(parentRect.rect.width, parentRect.rect.height);
|
| | | prefabRect.localScale = new Vector3(scale, scale, scale);
|
| | | }
|
| | | }
|
| | |
|