摘要:
public class L7 : MonoBehaviour { // Start is called before the first frame update void Start() { //制作Toggle //1.2个Sprite 一父一子 //2.为父对象添加Toggle脚本 //3. 阅读全文
摘要:
public class L6 : MonoBehaviour { public UIButton btnJoin; // Start is called before the first frame update void Start() { //所有组件的共同特点 //在三个基础组件上添加对应控 阅读全文
摘要:
public class L5 : MonoBehaviour { public UITexture tex; // Start is called before the first frame update void Start() { //Sprite只能显示图集中图片,一般用于显示中小图片 / 阅读全文
摘要:
public class L4 : MonoBehaviour { public UILabel label; // Start is called before the first frame update void Start() { //NGUI中所有文本显示都是用Label显示的 //Lab 阅读全文
摘要:
public class L3 : MonoBehaviour { public UISprite sprite; // Start is called before the first frame update void Start() { //Sprite作用 //NGUI中所有中小尺寸图片都用 阅读全文
摘要:
public class L2 : MonoBehaviour { // Start is called before the first frame update void Start() { //图集的作用 //NGUI中的最小图片空间Sprite要使用图集中的图片进行显示 //图集就是把很多单 阅读全文
摘要:
public class L1_Root : MonoBehaviour { // Start is called before the first frame update void Start() { //分辨率,屏幕宽高两个方向的像素点 //像素即px,是画面中最小的点(单位色块) //屏幕尺 阅读全文
摘要:
public class L15 : MonoBehaviour { // Start is called before the first frame update void Start() { //射线检测 //鼠标选择场景上的某一物体 //FPS射击游戏(无弹道,不产生实际的子弹进行移动) / 阅读全文
摘要:
public class L14 : MonoBehaviour { // Start is called before the first frame update void Start() { //范围检测 - 游戏中瞬时的攻击范围判断一般会使用范围检测 //比如玩家攻击使前方1米圆形范围内对象 阅读全文
摘要:
public class L13 : MonoBehaviour { private Material material; // Start is called before the first frame update void Start() { //LineRenderer是Unity提供的用 阅读全文