Query observed run zone explicitly
This commit is contained in:
parent
2cc4598915
commit
09389d9e68
4 changed files with 14 additions and 10 deletions
|
|
@ -49,7 +49,7 @@ public class MapRenderer : MonoBehaviour
|
|||
GravityCamera.gameObject.SetActive(true);
|
||||
TintCamera.gameObject.SetActive(true);
|
||||
InfluenceCamera.gameObject.SetActive(true);
|
||||
var currentZone = GameManager.CurrentDaemonGalaxyZone;
|
||||
GameManager.TryGetObservedRunZone(out var currentZone);
|
||||
Title.text = $"Zone: {currentZone?.Name ?? "Unknown"}";
|
||||
|
||||
// If hiding minimap asteroids, turn them back on for the map screen
|
||||
|
|
|
|||
|
|
@ -225,7 +225,7 @@ public class SectorRenderer : MonoBehaviour, IBeginDragHandler, IDragHandler, IS
|
|||
{
|
||||
_init = true;
|
||||
SectorCamera.gameObject.SetActive(true);
|
||||
var currentZone = GameManager.CurrentDaemonGalaxyZone;
|
||||
GameManager.TryGetObservedRunZone(out var currentZone);
|
||||
_position = currentZone?.Position ?? float2.zero;
|
||||
_viewSize = .25f;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue