自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

原创 简易音频管理

using System.Collections; using System.Collections.Generic; using UnityEngine; public class audios : MonoBehaviour {     public static audios interest;     public AudioClip[] audios;    

2017-12-20 11:20:43 164

原创 异步加载场景

using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEngine.SceneManagement; public class jump : MonoBehaviour {     public But

2017-12-20 11:11:05 425

转载 鼠标拖拽物体移动

using System.Collections; using System.Collections.Generic; using UnityEngine; public class DragPart : MonoBehaviour { private Vector3 _vec3TargetScreenSpace;// 目标物体的屏幕空间坐标   private Transform

2017-12-20 10:54:29 673

原创 鼠标点击物体移动到该位置

using UnityEngine; using System.Collections; public class move : MonoBehaviour {     public GameObject z;//物体     NavMeshAgent a; void Start () {             a = GetComponent();    

2017-12-20 10:48:22 1782

原创 人物IK设置(改变左右手角度实现拿东西效果)

using UnityEngine; using System.Collections; public class Move : MonoBehaviour {     Animator a;     public Transform zuo;//事先放好左手位置及角度     public Transform you;//事先放好右手位置及角度          

2017-12-20 10:38:17 1703

原创 敌人定点巡逻

using UnityEngine; using System.Collections; public class xunluo : MonoBehaviour {     public Transform[] wz;//要巡逻的几个点     UnityEngine.AI.NavMeshAgent b;     int i = 0;     void Start

2017-12-20 10:16:20 1547

转载 Unity中一些优化方案

一、程序方面   01、务必删除脚本中为空或不需要的默认方法;   02、只在一个脚本中使用OnGUI方法;   03、避免在OnGUI中对变量、方法进行更新、赋值,输出变量建议在Update内;   04、同一脚本中频繁使用的变量建议声明其为全局变量,脚本之间频繁调用的变量或方法建议声明为全局静态变量或方法;   05、不要去频繁获取组件,将其声明为全局变量;   06、数组、集合类

2017-12-20 09:49:19 539

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除