public override Light Do(LightBrain brain) { brain.YellowLight.enabled = true; brain.Time -= Time.unscaledDeltaTime * m_Speed; if (brain.Time <= 0.0f) { brain.Time = brain.StartTime; return(new Red()); } return(null); }
abstract public Light Do(LightBrain brain);