1
Fork 0
mirror of https://github.com/thegeneralist01/Scene-Manager-DevRepo synced 2026-01-11 23:50:29 +01:00

Fixed collector radius blip changing size on update when the player did not change the size in the menu. Added nullref checks for blips in updating the blip position.

This commit is contained in:
Rich Dunne 2020-09-21 11:31:16 -06:00
parent 03d18f621f
commit b3ca91e7a7

View file

@ -94,7 +94,7 @@ namespace SceneManager
if (CollectorRadiusBlip)
{
CollectorRadiusBlip.Alpha = 0.5f;
CollectorRadiusBlip.Scale = collectorRadius * 0.5f;
CollectorRadiusBlip.Scale = collectorRadius;
}
else
{
@ -128,8 +128,14 @@ namespace SceneManager
void UpdateWaypointBlipPosition()
{
Blip.Position = Game.LocalPlayer.Character.Position;
CollectorRadiusBlip.Position = Game.LocalPlayer.Character.Position;
if (Blip)
{
Blip.Position = Game.LocalPlayer.Character.Position;
}
if (CollectorRadiusBlip)
{
CollectorRadiusBlip.Position = Game.LocalPlayer.Character.Position;
}
}
}