Project current zone from daemon run
This commit is contained in:
parent
a33045c106
commit
0a21e44f54
4 changed files with 38 additions and 10 deletions
|
|
@ -49,7 +49,8 @@ public class MapRenderer : MonoBehaviour
|
|||
GravityCamera.gameObject.SetActive(true);
|
||||
TintCamera.gameObject.SetActive(true);
|
||||
InfluenceCamera.gameObject.SetActive(true);
|
||||
Title.text = $"Zone: {GameManager.Zone.GalaxyZone.Name}";
|
||||
var currentZone = GameManager.CurrentDaemonGalaxyZone;
|
||||
Title.text = $"Zone: {currentZone?.Name ?? "Unknown"}";
|
||||
|
||||
// If hiding minimap asteroids, turn them back on for the map screen
|
||||
if (!ActionGameManager.RuntimePlayerSettings.GraphicsSettings.ShowAsteroidsInMinimap)
|
||||
|
|
|
|||
|
|
@ -223,11 +223,13 @@ public class SectorRenderer : MonoBehaviour, IBeginDragHandler, IDragHandler, IS
|
|||
{
|
||||
_init = true;
|
||||
SectorCamera.gameObject.SetActive(true);
|
||||
_position = GameManager.Zone.GalaxyZone.Position;
|
||||
var currentZone = GameManager.CurrentDaemonGalaxyZone;
|
||||
_position = currentZone?.Position ?? float2.zero;
|
||||
_viewSize = .25f;
|
||||
|
||||
Map.StartReveal(LinkAnimationDuration, IconAnimationDuration);
|
||||
Map.MarkPlayerLocation(GameManager.CurrentEntity.Zone.GalaxyZone);
|
||||
if (currentZone != null)
|
||||
Map.MarkPlayerLocation(currentZone);
|
||||
}
|
||||
|
||||
private void OnDisable()
|
||||
|
|
|
|||
Loading…
Reference in a new issue