mirror of
https://github.com/thegeneralist01/Scene-Manager-DevRepo
synced 2026-01-11 15:40: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:
parent
03d18f621f
commit
b3ca91e7a7
1 changed files with 9 additions and 3 deletions
|
|
@ -94,7 +94,7 @@ namespace SceneManager
|
|||
if (CollectorRadiusBlip)
|
||||
{
|
||||
CollectorRadiusBlip.Alpha = 0.5f;
|
||||
CollectorRadiusBlip.Scale = collectorRadius * 0.5f;
|
||||
CollectorRadiusBlip.Scale = collectorRadius;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -127,11 +127,17 @@ namespace SceneManager
|
|||
}
|
||||
|
||||
void UpdateWaypointBlipPosition()
|
||||
{
|
||||
if (Blip)
|
||||
{
|
||||
Blip.Position = Game.LocalPlayer.Character.Position;
|
||||
}
|
||||
if (CollectorRadiusBlip)
|
||||
{
|
||||
CollectorRadiusBlip.Position = Game.LocalPlayer.Character.Position;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
internal void AddSpeedZone()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue