mirror of
https://github.com/thegeneralist01/Scene-Manager-DevRepo
synced 2026-01-11 15:40:29 +01:00
Removed unused code. Fixed blip opacity not being restored to normal when the path is re-enabled
This commit is contained in:
parent
b619e48650
commit
97314a2cde
1 changed files with 7 additions and 11 deletions
|
|
@ -12,7 +12,6 @@ namespace SceneManager
|
||||||
public class Path
|
public class Path
|
||||||
{
|
{
|
||||||
public int PathNum { get; private set; }
|
public int PathNum { get; private set; }
|
||||||
//public bool PathFinished { get; private set; }
|
|
||||||
public bool IsEnabled { get; private set; }
|
public bool IsEnabled { get; private set; }
|
||||||
public State State { get; set; }
|
public State State { get; set; }
|
||||||
|
|
||||||
|
|
@ -21,7 +20,6 @@ namespace SceneManager
|
||||||
public Path(int pathNum, bool pathFinished, bool pathDisabled, List<Waypoint> waypoints)
|
public Path(int pathNum, bool pathFinished, bool pathDisabled, List<Waypoint> waypoints)
|
||||||
{
|
{
|
||||||
PathNum = pathNum;
|
PathNum = pathNum;
|
||||||
//PathFinished = pathFinished;
|
|
||||||
IsEnabled = pathDisabled;
|
IsEnabled = pathDisabled;
|
||||||
Waypoints = waypoints;
|
Waypoints = waypoints;
|
||||||
}
|
}
|
||||||
|
|
@ -30,7 +28,6 @@ namespace SceneManager
|
||||||
{
|
{
|
||||||
PathNum = pathNum;
|
PathNum = pathNum;
|
||||||
State = pathState;
|
State = pathState;
|
||||||
//PathFinished = pathFinished;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetPathNumber(int pathNum)
|
public void SetPathNumber(int pathNum)
|
||||||
|
|
@ -38,11 +35,6 @@ namespace SceneManager
|
||||||
PathNum = pathNum;
|
PathNum = pathNum;
|
||||||
}
|
}
|
||||||
|
|
||||||
//public void FinishPath()
|
|
||||||
//{
|
|
||||||
// PathFinished = true;
|
|
||||||
//}
|
|
||||||
|
|
||||||
private void LowerWaypointBlipsOpacity()
|
private void LowerWaypointBlipsOpacity()
|
||||||
{
|
{
|
||||||
foreach (Waypoint wp in Waypoints)
|
foreach (Waypoint wp in Waypoints)
|
||||||
|
|
@ -59,10 +51,13 @@ namespace SceneManager
|
||||||
{
|
{
|
||||||
foreach (Waypoint wp in Waypoints)
|
foreach (Waypoint wp in Waypoints)
|
||||||
{
|
{
|
||||||
wp.Blip.Alpha = 1.0f;
|
if (wp.Blip)
|
||||||
if (wp.CollectorRadiusBlip)
|
|
||||||
{
|
{
|
||||||
wp.CollectorRadiusBlip.Alpha = 0.5f;
|
wp.Blip.Alpha = 1.0f;
|
||||||
|
if (wp.CollectorRadiusBlip)
|
||||||
|
{
|
||||||
|
wp.CollectorRadiusBlip.Alpha = 0.5f;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -76,6 +71,7 @@ namespace SceneManager
|
||||||
public void EnablePath()
|
public void EnablePath()
|
||||||
{
|
{
|
||||||
IsEnabled = true;
|
IsEnabled = true;
|
||||||
|
RestoreWaypointBlipsOpacity();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue