摘要:
关于设置跳跃: 阅读全文
摘要:
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... 阅读全文
摘要:
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class SphereControll : MonoBehaviour { bool b = false; public float sphereSpeed=10... 阅读全文
摘要:
2. 3. 阅读全文
摘要:
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ItweenText : MonoBehaviour { public GameObject obj; float time = 0; public iTween.EaseType typ... 阅读全文
摘要:
using System.Collections; using System.Collections.Generic; using UnityEngine; public class fanfuyundong09 : MonoBehaviour { public GameObject sphere;//定义另一个球 GameObject obj; float speed... 阅读全文
摘要:
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ray10 : MonoBehaviour { int num = 0; Vector3 vec; GameObject obj; bool b = false; Colo... 阅读全文
摘要:
此代码还有点问题,如果点击的两个cube相隔两个以外,game界面会卡死,,,,等我修改后再来更新 阅读全文