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