25 lines
485 B
C#
25 lines
485 B
C#
|
|
using System.Collections;
|
||
|
|
using System.Collections.Generic;
|
||
|
|
using UnityEngine;
|
||
|
|
|
||
|
|
public class MiniMapFollower : MonoBehaviour
|
||
|
|
{
|
||
|
|
public Transform tranCameraTag;
|
||
|
|
|
||
|
|
Transform tranCamera;
|
||
|
|
|
||
|
|
private void Start()
|
||
|
|
{
|
||
|
|
tranCamera = CommonData.MainCamera.transform;
|
||
|
|
}
|
||
|
|
|
||
|
|
void Update()
|
||
|
|
{
|
||
|
|
tranCameraTag.position = new Vector3(
|
||
|
|
tranCamera.position.x,
|
||
|
|
tranCameraTag.position.y,
|
||
|
|
tranCamera.position.z
|
||
|
|
);
|
||
|
|
}
|
||
|
|
}
|