/// <summary> /// Player has collected fruit so do all logic based on it. /// </summary> public void PlayerCollectedFruit() { fruitSpawner.SpawnNewFruit(false); scoreManager.IncreaseScore(); powerupSpawner.UpdateActualCollectedFruit(scoreManager.GetCurrentScore()); fruitSpawner.SetMoveFruitTowardsPlayer(false); guiManager.FruitCollected(scoreManager.GetCurrentScore()); soundManager.PlaySound(SoundEffectType.SOUND_EAT, true); soundManager.CheckMusicLoopLevelIncrease(scoreManager.GetCurrentScore()); }