示例#1
0
 // Update is called once per frame
 void Update()
 {
     if (Plane_Trigger)
     {
         if (TimeJuede.OverTime(ref time_record, Over_Milliseconds))
         {
             animator.SetTrigger("planeTrigger");
         }
         Plane_Trigger = false;
     }
 }
示例#2
0
 // Update is called once per frame
 void Update()
 {
     if (isActivated)
     {
         if (TimeJuede.OverTime(ref timeRecord, Over_Milliseconds))
         {
             Anitor.SetTrigger("isActivated");
         }
         isActivated = false;
     }
 }
示例#3
0
    // Update is called once per frame
    void Update()
    {
        if (bulbTrigger)
        {
            if (TimeJuede.OverTime(ref time_record, OverMilliseconds))
            {
                switch (tick)
                {
                case 0: BulbB.bulbBTrigger = true;
                    break;

                case 1: BulbR.bulbRTrigger = true;
                    break;

                case 2: BulbY.bulbYTrigger = true;
                    break;

                default: break;
                }
                tick = (tick + 1) % max;
            }
            bulbTrigger = false;
        }
    }