public override void ContinousStateBehaviour(LightStateClass mLSC, Material GreenLight, Material YellowLight, Material RedLight) { if (Time.time > Timer + Duration) { mLSC.SetState(new PassBlink()); } }
public override void ContinousStateBehaviour(LightStateClass mLSC, Material GreenLight, Material YellowLight, Material RedLight) { if (Time.time > Timer + Duration) { mLSC.SetState(new Wait()); } if (Time.time > BlinkTimer + 0.2f) { On = !On; BlinkTimer = Time.time; SwitchGreen(GreenLight, On); } }
public abstract void ContinousStateBehaviour(LightStateClass mLSC, Material GreenLight, Material YellowLight, Material RedLight);