// Start is called before the first frame update void Start() { timer = 0; priorityTimer = 0; currentSet = startSet; currentPriority = currentSet.priority; currentLine = 0; priorityLine = 0; currentSet.SetIsActive(true); }
public void ChangeLineSet(LineSet newSet) { if ((newSet != null && currentSet == null) || newSet.priority >= currentSet.priority) { priorityTimer = 0; priorityLine = 0; if (currentSet != null) { currentSet.SetIsActive(false); } currentSet = newSet; currentSet.SetIsActive(true); currentPriority = currentSet.priority; } }