2026-04-05 미니맵 프로토타입
This commit is contained in:
@@ -85,8 +85,18 @@ private void UpdatePlayerIcon()
|
||||
{
|
||||
if (_playerIcon == null) return;
|
||||
|
||||
_playerIcon.anchoredPosition = WorldToMapPos(GameManager.Instance.Level.CurrentCharacter.transform.position);
|
||||
_playerIcon.localRotation = Quaternion.Euler(0, 0, -GameManager.Instance.Level.CurrentCharacter.transform.eulerAngles.y);
|
||||
Transform player = GameManager.Instance.Level.CurrentCharacter.transform;
|
||||
|
||||
if (_useRenderTexture)
|
||||
{
|
||||
_playerIcon.anchoredPosition = Vector2.zero;
|
||||
}
|
||||
else
|
||||
{
|
||||
_playerIcon.anchoredPosition = WorldToMapPos(player.position);
|
||||
}
|
||||
|
||||
_playerIcon.localRotation = Quaternion.Euler(0, 0, -player.eulerAngles.y);
|
||||
}
|
||||
|
||||
private void UpdateMarkers()
|
||||
|
||||
Reference in New Issue
Block a user