Added node highlight, fixed temporary load to include start node as well, fixed For-Condition
This commit is contained in:
@@ -11,8 +11,9 @@ public partial class Robot : Node3D
|
||||
private const float CooldownTarget = 35f;
|
||||
private const float MaintenanceLossPerSecond = 0.025f;
|
||||
|
||||
private bool isExecuting = false;
|
||||
public bool isExecuting = false;
|
||||
|
||||
public ProgramNode programStartNode;
|
||||
public ProgramNode currentNode;
|
||||
public string currentProgram;
|
||||
public string currentMessage = "";
|
||||
@@ -103,6 +104,7 @@ public partial class Robot : Node3D
|
||||
if (nodes.Count <= 0) return;
|
||||
|
||||
isExecuting = true;
|
||||
programStartNode = nodes[0];
|
||||
currentNode = nodes[0];
|
||||
currentMessage = "";
|
||||
}
|
||||
@@ -110,6 +112,7 @@ public partial class Robot : Node3D
|
||||
public void StopExecution(string message)
|
||||
{
|
||||
isExecuting = false;
|
||||
programStartNode = null;
|
||||
currentNode = null;
|
||||
currentMessage = message;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user