js #pragma strict //用于绑定参照物对象 var target : Transform; //缩放系数 var distance = 10.0; //左右滑动移动速度 var xSpeed = 250.0; var ySpeed = 120.0; //缩放限制系数 var yMinLimit = -20; var yMaxLimit = 80; //摄像头的位置 var x = 0.0; var y = 0.0; //记录上一次手机触摸位置判断用户是在左放大还是缩小手势 pri…
using UnityEngine; using System.Collections; public class sheji : MonoBehaviour { public int speed = 5; public Transform newobject; float axisX2 = 0; float axisY2 = 0; // Use this for initialization void Start () { } // Update is called once per fram…