using System; using System.Collections; using UnityEngine; // This class just convert from CharacterMotor.js to C# [RequireComponent(typeof(CharacterController))] [AddComponentMenu("Character/Character Motor")] public class CharacterMotor : Mono…
GameObject.CreatePrimitive(PrimitiveType.Cube); GameObject.CreatePrimitive(PrimitiveType.Plane); GameObject.CreatePrimitive(PrimitiveType.Sphere); GameObject.CreatePrimitive(PrimitiveType.Cylinder); 然后设置transform组件: using System; using UnityEngine; u…