// Delete a control variable public void RemoveVariable(ControlVariable cv) { m_controlVariables.Remove (cv); GameObject.DestroyImmediate (cv.gameObject); //ScriptableObject.DestroyImmediate(cv); }
public override string ToString() => $"for({ ControlVariable.VariableAssignment() } { ControlVariable } < { UpperBound }; { ControlVariable }++) " + base.ToString();
// Rename the passed variable public void RenameVariable(ControlVariable cv, string newName) { cv.m_variableName = newName; }