예제 #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.
     }
 }
예제 #2
0
 // Updates the appearance of the buffer meter.
 private void UpdateBufferMeter()
 {
     meterBuffer.SetLeftAnchor(bufferLower);
     meterBuffer.SetPercent(bufferUpper);
 }
예제 #3
0
 // Updates the appearance of the buffer meter.
 private void UpdateBufferMeter()
 {
     //Debug.Log(name + " UpdateBufferMeter");
     meterBuffer.SetLeftAnchor(bufferLower);
     meterBuffer.SetPercent(bufferUpper);
 }
예제 #4
0
 private void FixedUpdate()
 {
     meterPunchCooldown.SetPercent(timerPunchCooldown.GetPercentFinished());
     timerPunching.Tick(ts.DeltaTime());
     timerPunchCooldown.Tick(ts.DeltaTime());
 }