Exemple #1
0
 private void OnBallHitCrystal(BallHitCrystalSignal signal)
 {
     signal.Crystal.GetComponent <Crystal>().Take();
     spawner.DespawnCrystal(signal.Crystal);
 }
Exemple #2
0
        private void OnBallHitCrystal(BallHitCrystalSignal signal)
        {
            Stat.AddScore(PlayerStat.ScoreForCrystal);

            audioPlayer.Play(audioSettings.BallHitCrystalSound, audioSettings.BallHitCrystalVolume);
        }