(client) chore
This commit is contained in:
@ -83,8 +83,11 @@ namespace CameraControl
|
||||
{
|
||||
_dragOrigin = _camera.ScreenToWorldPoint(Input.mousePosition);
|
||||
_isDragging = true;
|
||||
Program.Instance.focusedEntity.PlayerControlled = false;
|
||||
Program.Instance.focusedEntity = null; // Clear focus when manually moving camera
|
||||
if (Program.Instance.focusedEntity)
|
||||
{
|
||||
Program.Instance.focusedEntity.PlayerControlled = false;
|
||||
Program.Instance.focusedEntity = null; // Clear focus when manually moving camera
|
||||
}
|
||||
}
|
||||
|
||||
// During drag
|
||||
|
15
Client/Assets/Scripts/CameraControl/MiniMapCamera.cs
Normal file
15
Client/Assets/Scripts/CameraControl/MiniMapCamera.cs
Normal file
@ -0,0 +1,15 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ef73ec15d93e4f099081b221e275834d
|
||||
timeCreated: 1756173994
|
Reference in New Issue
Block a user