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

浙公网安备 33010602011771号