mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-29 09:32:38 +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 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()
|
private void Update()
|
||||||
|
@ -60,7 +60,12 @@ public class PlayerMapMarker : MonoBehaviour
|
|||||||
var playerScreenPos = Locator.GetActiveCamera().WorldToScreenPoint(transform.position);
|
var playerScreenPos = Locator.GetActiveCamera().WorldToScreenPoint(transform.position);
|
||||||
var isInfrontOfCamera = playerScreenPos.z > 0f;
|
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()
|
public void LateUpdate()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user