随笔分类 -  Unity

摘要:c#作为一门强大的编程语言绝对有计时器这样的功能,而且有3钟,unity能用的有2种。System.Timers.Timer t = new System.Timers.Timer(1000);//实例化Timer类,设置间隔时间,单位为毫秒;t.Elapsed += new System.Time... 阅读全文
posted @ 2015-01-07 15:23 Zhaoyier 阅读(2119) 评论(0) 推荐(0)
摘要:using UnityEngine; using System.Collections; public class UIDataHandler : MonoBehaviour { public UIInput nameInput; public UIInput psInput; public Gam... 阅读全文
posted @ 2014-12-08 22:27 Zhaoyier 阅读(192) 评论(0) 推荐(0)
摘要:12个Unity3D游戏源码 -新手必备愤怒的小鸟攻略技巧秘籍NGUI 教程收录大全:http://forum.exceedu.com/forum/forum.php?mod=viewthread&tid=26820小夭的游戏编程教室——(五)初音拼图游戏Vector3 targetPos = ne... 阅读全文
posted @ 2014-10-08 16:24 Zhaoyier 阅读(363) 评论(0) 推荐(0)
摘要:void doManagerPlayerCard(){ GameObject _object = Resources.Load ("Card/CardSprite", typeof(GameObject)) as GameObject; _testList.Sort (); int cardN... 阅读全文
posted @ 2014-08-26 18:48 Zhaoyier 阅读(324) 评论(0) 推荐(0)
摘要:public GameObject _background;public UIAtlas atlas;private Dictionary _allCardSprite;voidStart(){_allCardSprite=newDictionary();}for (int i=0; i(_pare... 阅读全文
posted @ 2014-07-25 14:07 Zhaoyier 阅读(430) 评论(0) 推荐(0)
摘要:using UnityEngine;using System.Collections;public class CoolTime : MonoBehaviour { // Use this for initialization void Start () { } int Co... 阅读全文
posted @ 2014-07-24 11:17 Zhaoyier 阅读(281) 评论(0) 推荐(0)
摘要:目前不知道怎么实现动态加载,可以换种思路来做做1、制作头像的atlas2、新建一个PlayerPanel(UIPanel),Depth设置为2(具体根据图层设置),PlayerPanel下新建三个组件username(UILable)、avatar(UISprite)、account(UILable... 阅读全文
posted @ 2014-07-23 16:57 Zhaoyier 阅读(235) 评论(0) 推荐(0)