Fixed an issue with error spam after leaving raid
This commit is contained in:
parent
21a50f9d03
commit
0d29f26300
@ -52,6 +52,11 @@ namespace Terkoiz.MapZoneHighlighter.BoundedBoxes
|
||||
|
||||
private void OnGUI()
|
||||
{
|
||||
if (Camera.main == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
ScreenPosition = UIDrawingUtil.WorldPointToScreenPoint(transform.position);
|
||||
IsOnScreen = UIDrawingUtil.IsScreenPointVisible(ScreenPosition);
|
||||
DistanceToCamera = Vector3.Distance(Camera.main.transform.position, transform.position);
|
||||
|
Loading…
x
Reference in New Issue
Block a user