会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
不麻不辣
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
2017年6月12日
GetTop(),GetTopLeft()等等
摘要: Panel_BattleInfo挂在屏幕最上方 protected override void OnStart() { Vector3 = pos = GetTop(); transform.Find("grid").LocalPosition = pos; } 其他同理。
阅读全文
posted @ 2017-06-12 16:24 不麻不辣
阅读(464)
评论(0)
推荐(0)
2017年5月24日
BattleInfo
摘要: 显示角色名字 荣耀值 出场单位
阅读全文
posted @ 2017-05-24 16:56 不麻不辣
阅读(489)
评论(0)
推荐(0)
2017年5月15日
代码风格
摘要: 1.private prtected 前面加m,比如mLabels或者mSprites 2.一个变量中间不要有_,比如loc_pos,可以写成localPos 3.类成员变量如果是public的,需要直接大写,比如public int Pos; 4.尽量不要在代码中写成固定值
阅读全文
posted @ 2017-05-15 17:42 不麻不辣
阅读(123)
评论(0)
推荐(0)
2017年4月20日
Unity 遮罩 点击panel以外的位置,panel关闭
摘要: public Class Panel_ATMRechage : IPanel{ private Dictionary<string,UISprite>mSprites; } protected override void OnAwake() { mSprites = UI.GetUIElement<
阅读全文
posted @ 2017-04-20 10:45 不麻不辣
阅读(2996)
评论(0)
推荐(0)
2017年4月19日
unity 在安卓个IOS平台上 同一个按钮 点击后实现不同的功能
摘要: #if UNITY_IOS UIEventListener.Get(mSprites["Recharge"].gameObject).onClick = OnIOSRechargeClick; #elif UNITY_ANDROID bool isOpen = Utile.Verification.
阅读全文
posted @ 2017-04-19 18:22 不麻不辣
阅读(675)
评论(0)
推荐(0)
unity 判断是安卓还是IOS平台
摘要: 功能概述 储值功能,点击一个按钮(mSprites["Recharge"]),实现储值功能,在IOS平台上,该按钮下的功能全部隐藏,在安卓平台上正常显示按钮,实现相应功能 #if UNITY_IOS mSprites["Recharge"].gameObject.SetActive(false);
阅读全文
posted @ 2017-04-19 11:51 不麻不辣
阅读(4604)
评论(0)
推荐(0)
2017年3月13日
C# set get 函数 属性访问器
摘要: 属性访问器 拿东西就是Get,放东西就是Setprivate string namepublic String Name{set{name = value;}get{return name;}}get获取属性值set设置属性值属性是对字段的封装,是为了程序数据的安全性考虑的set就是外部类可以修改此
阅读全文
posted @ 2017-03-13 10:19 不麻不辣
阅读(333)
评论(0)
推荐(0)
2017年3月2日
C# 字典 Dictionary
摘要: 原文地址http://www.cnblogs.com/txw1958/archive/2012/11/07/csharp-dictionary.html 侵删
阅读全文
posted @ 2017-03-02 22:06 不麻不辣
阅读(103)
评论(0)
推荐(0)
上一页
1
2
3
公告