private void SetLEDColor(LEDColorTypes colorIndex) { if (isFirstEnabled) { isFirstEnabled = false; AgentSetup agentSetup = GetComponentInParent <AgentSetup>(); if (agentSetup != null && agentSetup.NeedsBridge != null) { agentSetup.AddToNeedsBridge(this); } } currentLEDColor = colorIndex; }
private void SetLEDColor(LEDColorTypes colorIndex) { currentLEDColor = colorIndex; }