public void Die()
    {
        if (onFire)
        {
            gameObject.GetComponent().color = new Color32(255, 255, 255, 0);
        }
        else
        {
            animator.SetBool("sliced", true);
        }
    }


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *