1 using System.Collections;
2 using System.Collections.Generic;
5 public class Hearts : MonoBehaviour
11 public GameObject mouse;
13 // Start is called before the first frame update
16 health = mouse.GetComponent<Health>();
19 private void OnCollisionEnter2D(Collision2D collision)
21 if(collision.gameObject.CompareTag("Player"))
25 health.mouseHealth = 5;
26 gameObject.SetActive(false);
31 gameObject.SetActive(false);