示例#1
0
    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);
    }
示例#2
0
 abstract public Light Do(LightBrain brain);