Example #1
0
 private void FixedUpdate()
 {
     meterPunchCooldown.SetPercent(timerPunchCooldown.GetPercentFinished());
     while (timerPunching.TimeUp(ts.DeltaTime()))
     {
         // Punch finished.
         punchingObject.SetActive(false);
         timerPunchCooldown.Start();
     }
     while (timerPunchCooldown.TimeUp(ts.DeltaTime()))
     {
         // Punch cooldown finished.
     }
 }
Example #2
0
 // Updates the appearance of the buffer meter.
 private void UpdateBufferMeter()
 {
     meterBuffer.SetLeftAnchor(bufferLower);
     meterBuffer.SetPercent(bufferUpper);
 }
Example #3
0
 // Updates the appearance of the buffer meter.
 private void UpdateBufferMeter()
 {
     //Debug.Log(name + " UpdateBufferMeter");
     meterBuffer.SetLeftAnchor(bufferLower);
     meterBuffer.SetPercent(bufferUpper);
 }
Example #4
0
 private void FixedUpdate()
 {
     meterPunchCooldown.SetPercent(timerPunchCooldown.GetPercentFinished());
     timerPunching.Tick(ts.DeltaTime());
     timerPunchCooldown.Tick(ts.DeltaTime());
 }