private void OnTriggerEnter(Collider other) { if (other.tag == "Collectable") { score++; Destroy(other.gameObject); } if (other.tag == "Platform") { if (!invulnerable && other.GetComponent <Platform>().spinning) { Die(); } } if (other.tag == "Blade" && !invulnerable) { Die(); } if (other.tag == "Death") { Die(); } if (other.tag == "LevelUp") { _audioManager.IncreaseLevel(); score = 0; Destroy(other.gameObject); } if (other.tag == "FastForward") { _audioManager.ActivateStarPower(); Destroy(other.gameObject); } }