AEGameMode::Tick

Clear·2025년 3월 2일

EPortfolio docs
AEGameMode

Code

	virtual void Tick(float DeltaTime) override;

Functioning

  • MatchState MatchState::WaitingToStart 라면
    CountdownTime 을 남은 대기 시간으로 설정 시작 대기 시간 - 현재 시간 + 레벨 시직 시간
    • 카운트 다운이 끝난다면 StartMatch매치 시작 실행

  • MatchState MatchState::InProgress 라면
    CountdownTime 을 남은 매치 시간으로 설정 매치 시간 + 시작 대기 시간 - 현재 시간 + 레벨 시직 시간
    • 카운트 다운이 끝난다면 SetMatchState매치 상태 설정 실행

  • MatchState MatchState::Cooldown 라면
    CountdownTime 을 남은 재시작 대기 시간으로 설정 재시작 대기 시간+ 매치 시간 + 시작 대기 시간 - 현재 시간 + 레벨 시직 시간
    • 카운트 다운이 끝난다면 RestartGame재시작 실행
profile
Programmer

0개의 댓글