예제 #1
0
 public override void ContinousStateBehaviour(LightStateClass mLSC, Material GreenLight, Material YellowLight, Material RedLight)
 {
     if (Time.time > Timer + Duration)
     {
         mLSC.SetState(new PassBlink());
     }
 }
예제 #2
0
 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);
     }
 }
예제 #3
0
 public abstract void ContinousStateBehaviour(LightStateClass mLSC, Material GreenLight, Material YellowLight, Material RedLight);