代码改变世界

阅读排行榜

NGUI中的Tween Position动画

2017-05-20 12:27 by 梦随烟去, 1507 阅读, 收藏,
摘要: using System.Collections;using System.Collections.Generic;using UnityEngine; public class Inventory : MonoBehaviour { public static Inventory _instanc 阅读全文

动态加载音乐资源并动态播放

2017-07-05 15:28 by 梦随烟去, 456 阅读, 收藏,
摘要: AudioSource.PlayClipAtPoint(clip,transform.position);//发出一段声音并跟随物体 //动态加载代码 string ResourceDir="Audioes"; public void PlayAudio(string name){ string p 阅读全文

UI拖拽功能的实现与base.Start();

2017-05-20 14:16 by 梦随烟去, 456 阅读, 收藏,
摘要: using System.Collections;using System.Collections.Generic;using UnityEngine; public class InventoryItem : UIDragDropItem { void Start(){ base.Start(); 阅读全文

读取文本信息,拆分文本信息,根据拆分的文本信息保存在字典中

2017-05-21 22:43 by 梦随烟去, 384 阅读, 收藏,
摘要: using System.Collections;using System.Collections.Generic;using UnityEngine; public class ObjectsInfo : MonoBehaviour { private Dictionary<int, Object 阅读全文

组件、对象的获取方式

2017-05-20 12:55 by 梦随烟去, 328 阅读, 收藏,
摘要: private TweenPosition tween;//获取TweenPosition组件()ngui) public List<InventoryItemGrid> itemGridList = new List<InventoryItemGrid>();//InventoryItemGrid 阅读全文