using System.Collections; using System.Collections.Generic; using UnityEngine; // ReSharper disable once CheckNamespace namespace BlueWaterProject { public class TimeManager : Singleton { /// /// 히트스톱 /// /// 시간 public void TriggerHitStop(float duration) { StartCoroutine(HitStopCoroutine(duration)); } private IEnumerator HitStopCoroutine(float duration) { var originalTimeScale = Time.timeScale; Time.timeScale = 0.05f; yield return new WaitForSecondsRealtime(duration); Time.timeScale = originalTimeScale; } } }