示例#1
0
    void OnParticleCollision(GameObject other)
    {
        //if (isTransitioning || !collisionEnabled) return;

        if (other.tag == "Player")
        {
            var collision = particle.collision;

            collision.enabled = false;
            player.StartDeathSequence();
        }
    }