using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class mainstick : MonoBehaviour { public Fireplace Firething; private void OnTriggerEnter(Collider other) { if(other.tag == "Player") { other.GetComponent().stickCount += 1; GameObject.Destroy(gameObject); } } }