1 using System.Collections;
2 using System.Collections.Generic;
6 public class Cheese : MonoBehaviour
11 public int cheesecount;
13 public bool collected;
15 private void OnTriggerEnter2D(Collider2D collision)
17 if (collision.gameObject.CompareTag("Cheese"))
21 countText.text = cheesecount.ToString();
23 FindObjectOfType<AudioManager>().Play("cheese_plop");
25 collision.gameObject.SetActive(false);