/// <summary> /// Updates the countdown timer. /// </summary> private void _warpDrive_OnCountdownUpdate(object sender, WarpDrive.WarpCountdownArgs e) { string spaces = GetSpaces(Mathf.FloorToInt(e.CountdownLeft)); _countdownTick.text = $">>>> {spaces} {e.CountdownLeft.ToString("000.000")} {spaces} <<<<"; }
/// <summary> /// Launch countdown ticking. /// </summary> private void _warpDrive_OnCountdownTick(object sender, WarpDrive.WarpCountdownArgs e) { _countdownTick.Play(); }