so, i try to quit the game if i don’t have enough drones in bay. for that i use the same idea like ownanomaly; so:
in bot.cs
public bool StopBot { private set; get; }
.....................
public void SetStopBot(bool value)
{
StopBot = value;
}
in anomalyenter.cs; i put:
public bool StopBot = false;
.................
if (droneInBayCount < 5)
{
bot?.SetStopBot(true);
warp or retreatTask
}
and in undock.cs
if (bot?.StopBot != true)
{
undock
}
else
quitgame
once we change the tasks ( I retreat or I am into station) I lose the value of stop bot stored in anomaly enter?? How can I prevent that?