private void OnRevive(EventRevive eventData) { _hasAlreadyRevived = true; _gamePanel.SetActive(true); ShowTimeoutEffect(false, true); _endGamePanel.gameObject.SetActive(false); _endGameParticle.gameObject.SetActive(false); }
private void OnRevive(EventRevive e) { if (_gameState == GameState.EndByDead) { _platform.ForceDestroyNextLayer(true); } _character.Revive(); _character.Jump(); _gameState = GameState.Playing; _platform.CanInteract = true; _roundTime = _gameSetting.reviveRoundDuration; EventHub.Emit(new EventGameTimeUpdate() { time = _roundTime }); }