유니티 실시간 딜레이 계산
Unity/Study2024. 1. 24. 21:38유니티 실시간 딜레이 계산

구현 소개유니티 에디터 플레이 모드가 아니더라도 저장된 데이터로 실시간 딜레이 구현하기기능 구현DateTimeDateTime timerStart = DateTime.Now;DateTime timerEnd = timerStart.Add(new TimeSpan(0, 10, 0));DateTime.Now를 통해 현재 시간을 확보 TimeSpan으로 10초의 딜레이 생성Delay Coroutinewhile (true){ if (totalSecondsLeft > 1) { if (totalSecondsLeft >= 60) { TimeSpan ts = TimeSpan.FromSeconds(totalSecondsLeft); timeCheckTe..

image