//将以下代码绑定到相机上 using UnityEngine; using System.Collections; public class LookatScipt : MonoBehaviour { // Use this for initialization void Start () { } // Update is called once per frame void Update () { float x = Input.GetAxis ("Horizontal&qu…
using UnityEngine; using System.Collections; public class create : MonoBehaviour { // Use this for initialization public GameObject newObject; void OnGUI() { ,,,),"开始")) { //创建游戏物体 GameObject instance = (GameObject)Instantiate(newObject,transfor…
using UnityEngine; using System.Collections; public class MouseEvent_Color : MonoBehaviour { //物体初始颜色 private Color CubeColor; private Texture CubeTexture; private GameObject ObjCube; // Use this for initialization void Start () { ObjCube = GameObjec…