private void OnSpeedPowerup(PowerupData powerupData) { if (mSpeedCoroutine != null) { StopCoroutine(mSpeedCoroutine); } mSpeedCoroutine = StartCoroutine(UpdateSpeedForDuration(m_Speed * powerupData._PowerupMultiplier, powerupData._PowerupDuration)); }
private void OnScorePowerup(PowerupData powerupData) { pScore += powerupData._PowerupMultiplier; m_ScoreText.text = pScore.ToString(); }
private void OnTimePowerup(PowerupData powerupData) { m_Duration += powerupData._PowerupMultiplier; }