Пример #1
0
    private void CollisionBBevahiour()
    {
        audioSource.PlayOneShot(collectedSound);
        scoreDisplay.UpdateScore(scoreValue);

        if (isArtifact)
        {
            scoreDisplay.UpdateArtifactScore(1);
            scoreDisplay.artifactPoints += 1500;
        }
        else
        {
            scoreDisplay.UpdateCollectablesScore(1);
        }
        //scoreDisplay.UpdateCollectablesScore(1);
        destroyParticle.SetActive(false);
        collectedParticleEffect.Play();
    }