2025-08-26 16:00:58 +08:00
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
namespace CameraControl
|
|
|
|
{
|
|
|
|
public class MiniMapCamera : MonoBehaviour, Base.ITick
|
|
|
|
{
|
|
|
|
public void Tick()
|
|
|
|
{
|
2025-08-27 13:56:22 +08:00
|
|
|
if (Program.Instance.FocusedEntity)
|
2025-08-26 16:00:58 +08:00
|
|
|
{
|
2025-08-27 13:56:22 +08:00
|
|
|
transform.position = Program.Instance.FocusedEntity.transform.position + new Vector3(0, 0, -10);
|
2025-08-26 16:00:58 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|