127. 主人公を追いかける
using UnityEngine;
using System.Collections;
public class CameraMove : MonoBehaviour {
// 相手のTransform(位置・角度・大きさ)情報を取得
public Transform move_target;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
// 自分の位置を相手の位置と同じにする。
transform.position = move_target.position;
}
}
https://goo.gl/wwn7z8