mirror of
http://47.107.252.169:3000/Roguelite-Game-Developing-Team/Gen_Hack-and-Slash-Roguelite.git
synced 2025-11-20 00:57:14 +08:00
15 lines
354 B
C#
15 lines
354 B
C#
|
|
using UnityEngine;
|
||
|
|
|
||
|
|
namespace CameraControl
|
||
|
|
{
|
||
|
|
public class MiniMapCamera : MonoBehaviour, Base.ITick
|
||
|
|
{
|
||
|
|
public void Tick()
|
||
|
|
{
|
||
|
|
if (Program.Instance.FocusedEntity)
|
||
|
|
{
|
||
|
|
transform.position = Program.Instance.FocusedEntity.transform.position + new Vector3(0, 0, -10);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|