摘要:
1.AssetBundle 是一个压缩包,包含模型,贴图,预制体,声音,甚至整个场景,可以在游戏运行的时候被加载; 2.AssetBundle自身保存着相互的依赖关系; 3.压缩包可以使用LZMA和LZ4压缩算法,减少包大小,更快的进行网络传输; 4.把一些可以下载内容放在AssetBundle里面 阅读全文
摘要:
关于设置跳跃: 阅读全文
摘要:
2.int类型 阅读全文
摘要:
定义成方法:using System.Collections; using System.Collections.Generic; using UnityEngine; public class AudioManger : MonoBehaviour { AudioSource au; public AudioClip[] clip = new AudioClip[3]; ... 阅读全文
摘要:
1. 2. 3.材质移动 4.用MoveTowards 阅读全文
摘要:
using System.Collections; using System.Collections.Generic; using UnityEngine; public class playcontrol : MonoBehaviour { public KeyCode upkey;//外面去指定键 public KeyCode downkey;//外面去指定键 ... 阅读全文
摘要:
dotween最原始的用法 using System.Collections; using System.Collections.Generic; using UnityEngine; using DG.Tweening; public class DotweenText : MonoBehaviour { public GameObject cube; public Rect... 阅读全文
摘要:
在生成点生成带有颜色的小球,小球走对应颜色的路 先做好三个小球,做成预制体 对应颜色的小球,除了自身颜色,其他颜色不要选 新建脚本: 阅读全文
摘要:
小球找到目标位置, 必要时候进行跳跃 进行跳跃时,需要在cube上加上 Off Mesh Link 组件,并添加起跳位置和目标位置 在static位置选Navigation static 编写脚本,挂在要运动的物体上 阅读全文
摘要:
using System.Collections; using System.Collections.Generic; using UnityEngine; public class BuffShoot : MonoBehaviour { public GameObject Bu;//发射的子弹 public Transform tr;//发射子弹的位置 float t... 阅读全文