private void ShareExperiences() { if (trailControllerP1.TrailLength() > 0 || trailControllerP2.TrailLength() > 0) { trailControllerP1.FadeOutTrail(); trailControllerP2.FadeOutTrail(); onExperienceShareAudioSource.Play(); } }
private void GainPositiveExperience() { if (trailController.TrailLength() >= maxTrailLength) { // Only allow experiences to impact balance up until a certain point return; } currentBalanceDirection = BalanceDirection.RECHARGE_FACTOR; AddToBalance(experienceImpact); cameraController.UpdatePlayerVision(currentBalanceDirection, experienceImpact); //if (!experienceCollectAudioSource.isPlaying) //experienceCollectAudioSource.Play(); trailController.GrowTrail(); }