摘要: using UnityEngine; using System.Collections; public class test : MonoBehaviour { //在场景中鼠标点击地面后,角色可以移动到目标位置 private Vector3 target; private bool isOver = true; public float speed; ... 阅读全文
posted @ 2016-07-18 23:59 吴筱军 阅读(18906) 评论(1) 推荐(0) 编辑
摘要: 扩展方法就是为一个现有类型添加一个方法,现有类型既可以是int,string等数据类型,也可以是自定义的数据类型。 阅读全文
posted @ 2016-07-18 10:24 吴筱军 阅读(172) 评论(0) 推荐(0) 编辑