1 using System.Collections;
2 using System.Collections.Generic;
6 public class Cheese : MonoBehaviour
9 private int cheesecount;
16 private void OnTriggerEnter2D(Collider2D collision)
18 if (collision.gameObject.CompareTag("Cheese"))
24 FindObjectOfType<AudioManager>().Play("cheese_plop");
26 collision.gameObject.SetActive(false);
32 countText.text = cheesecount.ToString();