摘要: this.gameObject.layer = LayerMask.NameToLayer("KongLong"); 为何这些脚本前边的方框都不见了,是因为这些脚本中没有Start()或者Update() FixedUpdate() OnGUI() 等等方法,测试添加Awake()是无效的 阅读全文
posted @ 2016-12-15 12:28 Fei非非 阅读(675) 评论(0) 推荐(0) 编辑
摘要: using UnityEngine;using System.Collections;using UnityEditor; public class ZYResetTheAnimator : MonoBehaviour { [MenuItem("ZY/ResetTheAnimator")] stat 阅读全文
posted @ 2016-12-10 14:53 Fei非非 阅读(491) 评论(0) 推荐(0) 编辑
摘要: //动态添加按钮事件 Button temp = Item.GetComponent<Button>(); temp.onClick.AddListener(delegate () { this.Btn_SelectFileSection_Click(temp.gameObject); }); pu 阅读全文
posted @ 2016-12-09 10:45 Fei非非 阅读(1460) 评论(0) 推荐(0) 编辑
摘要: 你坚持一两年,身边满是对手;坚持三四年,身边十几个对手;坚持七八年,身边三五个对手;坚持十几年,身边没有对手。 坚持十年,现在只是才五个月而已。 我相信我一定会被未来的自己所感动。 阅读全文
posted @ 2016-11-13 18:34 Fei非非 阅读(147) 评论(0) 推荐(0) 编辑
摘要: foreach(Transform child in Cube.transform){ Debug.Log("child.name is:"+child.name); } 阅读全文
posted @ 2016-10-22 09:48 Fei非非 阅读(362) 评论(0) 推荐(0) 编辑
摘要: 值 对应键 Backspace 退格键 Delete Delete键 Tab TabTab键 Clear Clear键 Return 回车键 Pause 暂停键 Escape ESC键 Space 空格键 Keypad0 小键盘0 Keypad1 小键盘1 Keypad2 小键盘2 Keypad3 阅读全文
posted @ 2016-10-22 01:21 Fei非非 阅读(1224) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2016-10-14 01:32 Fei非非 阅读(1) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2016-10-12 15:27 Fei非非 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 支持原创:http://www.manew.com/thread-23491-1-1.html、 相信大家在开发过程中,难免会保存一些文件在客户端进行本地化操作。如:配置文件,状态文件,Assetbundle文件等等...最近总有人问我:1.保存了一个xml在客户端,能读取里面的数据,可是不能修改, 阅读全文
posted @ 2016-10-12 10:50 Fei非非 阅读(3205) 评论(0) 推荐(0) 编辑
摘要: 1、非授权服务器 非授权服务器代码 using UnityEngine;using System.Collections; public class networkserver : MonoBehaviour { private string roip="127.0.0.1"; private in 阅读全文
posted @ 2016-10-12 02:21 Fei非非 阅读(698) 评论(0) 推荐(0) 编辑