之所以写这个脚本,是因为我想起了我还是新手的时候,那时为了一个角色控制脚本百度了半天还是一无所获,因为看不懂啊,都写的太高级了 希望这个脚本能够帮助那些 像曾经的我一样迷失于代码中的新手们能够清晰的理解这个角色控制的含义 ///角色控制脚本 public class Player : MonoBehaviour { ; //这个是定义的玩家的移动速度 之所以Public是因为为了方便对其进行调节 (public的属性和对象会在Unity中物体的脚本选项中显示出来 前提是你把脚本挂在了物体上) v
Primitive and Placeholder Objects 原始的基础物体 Unity can work with 3D models of any shape that can be created with modelling software. However, there are also a number of primitive object types that can be created directly within Unity, namely the Cube, S
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Rotate : MonoBehaviour { private float origionZ; private Quaternion targetRotation; ; ; private bool i; // Use this for initialization void Start () { origion
脚本应该放在Editor文件夹下 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; public class BuildAssetBundle { [MenuItem("BuildAB/BuildABToWin64/LZMA(体积小,加载慢)")] private static void BuildABsToWin64_LZMA() { //