// 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; } }
// Update is called once per frame void Update() { if (isActivated) { if (TimeJuede.OverTime(ref timeRecord, Over_Milliseconds)) { Anitor.SetTrigger("isActivated"); } isActivated = false; } }
// 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; } }