mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-17 01:13:05 +00:00
more marker visibility things
This commit is contained in:
parent
7c1c346067
commit
1aae7b41dc
@ -34,7 +34,11 @@ public class PlayerHUDMarker : HUDDistanceMarker
|
||||
return false;
|
||||
}
|
||||
|
||||
return _player.IsReady && !_player.IsDead && (!_player.InDreamWorld || QSBPlayerManager.LocalPlayer.InDreamWorld) && _player.Visible;
|
||||
return _player.IsReady &&
|
||||
!_player.IsDead &&
|
||||
_player.Visible &&
|
||||
_player.InDreamWorld == QSBPlayerManager.LocalPlayer.InDreamWorld &&
|
||||
_player.IsInMoon == QSBPlayerManager.LocalPlayer.IsInMoon;
|
||||
}
|
||||
|
||||
private void Update()
|
||||
|
@ -60,7 +60,12 @@ public class PlayerMapMarker : MonoBehaviour
|
||||
var playerScreenPos = Locator.GetActiveCamera().WorldToScreenPoint(transform.position);
|
||||
var isInfrontOfCamera = playerScreenPos.z > 0f;
|
||||
|
||||
return _player.IsReady && !_player.IsDead && (!_player.InDreamWorld || QSBPlayerManager.LocalPlayer.InDreamWorld) && _player.Visible && isInfrontOfCamera;
|
||||
return isInfrontOfCamera &&
|
||||
_player.IsReady &&
|
||||
!_player.IsDead &&
|
||||
_player.Visible &&
|
||||
_player.InDreamWorld == QSBPlayerManager.LocalPlayer.InDreamWorld &&
|
||||
_player.IsInMoon == QSBPlayerManager.LocalPlayer.IsInMoon;
|
||||
}
|
||||
|
||||
public void LateUpdate()
|
||||
|
Loading…
Reference in New Issue
Block a user