Exemple #1
0
    void OnTriggerEnter(Collider other)
    {
        if (other.tag == "Slimey Fish")
        {
            controller.UpdateHealth(1);
            PlayStrParticle();
        }

        if (other.tag == "Crusty Fish")
        {
            controller.UpdateHealth(1);
            PlayStrParticle();
        }

        if (other.tag == "Inferno Fish")
        {
            controller.UpdateHealth(5);
            PlayWeakParticle();
        }

        if (other.tag == "Frozen Fish")
        {
            controller.UpdateHealth(1);
            PlayStrParticle();
        }

        if (other.tag == "Basic Fish")
        {
            controller.UpdateHealth(2);
            PlayStrParticle();
        }
    }