示例#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);
     }
 }