自由幻想UI之格子
来源:互联网 发布:我的女神 藤岛 知乎 编辑:程序博客网 时间:2024/04/29 16:29
using UnityEngine;using UnityEngine.UI;public class LatticeView : MonoBehaviour { public Image icon; public Text size; public Text count; public Sprite Icon { get { return icon.sprite; } set { icon.sprite = value; icon.gameObject.SetActive(value != null); } } public int Count { set { if(value > 1) { size.text = value.ToString(); count.text = value.ToString(); size.gameObject.SetActive(true); } else { size.gameObject.SetActive(false); } } } private void Awake() { icon = icon ?? transform.GetComponentsInChildren<Image>()[1]; size = size ?? icon.transform.GetComponentInChildren<Text>(); count = count ?? size.transform.GetComponentsInChildren<Text>()[1]; }}
阅读全文
0 0
- 自由幻想UI之格子
- 自由幻想UI之背包
- 自由幻想UI之鼠标跟随图标
- 自由幻想UI之信息显示
- 自由幻想UI之数量选择界面
- 自由幻想UI之角色界面
- 自由幻想UI之技能面板
- 自由幻想UI之切换成就列表
- 自由幻想UI之成就界面
- 自由幻想UI之幻神界面
- 自由幻想UI之宠物界面
- 自由幻想UI之任务界面
- 恶搞《卖拐》之QQ自由幻想版
- QQ自由幻想之都是月亮惹的祸
- 《风色幻想》之幻想
- QQ自由幻想囧表情引领新时尚!
- 我《QQ自由幻想》的情感历程
- 我《QQ自由幻想》的情感历程
- 数据结构实验之链表八:Farey序列
- 双活架构设计必读的10篇深度文章
- SQL SERVER 查看表占用空间大小--排除数据库大小异常时特别有用
- Spring 4.3.11.RELEASE文档阅读(二):Core Technologies_AOP
- python变量赋值
- 自由幻想UI之格子
- Leetcode 230. Kth Smallest Element in a BST
- bugku writeup(misc_1)
- 等你来答|看看自己对机器学习掌握多少?
- 梁家卿 | 百科知识图谱同步更新
- 领域应用 | 中医临床术语系统
- CCF YOCSEF上海即将举办“人工智能+金融科技”学术报告会
- 肖仰华 | 基于知识图谱的用户理解
- ubuntu14 软件安装小结