using
System
.
Collections
;
using
System
.
Collections
.
Generic
;
using
UnityEngine
;
public
class
CameraMove
:
MonoBehaviour
{
Vector3
offset
;
//记录游戏玩家和摄像机的差值
Transform
player
;
public
float
moveSpeed
= 3;
public
float
turnSpeed
= 5;
public
int
pointCount
= 5;
private
Vector3
[]
points
;
//监测点的个数
// Use this for initialization
void
Start
() {
player
=
GameObject
.
FindGameObjectWithTag
(
GameTag
.
player
).
transform
;
offset
=