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