// Jimmy Vegas Unity Tutorials // This Script is for collecting the coins using System.Collections; using System.Collections.Generic; using UnityEngine; public class CoinCollect : MonoBehaviour { void OnTriggerEnter(Collider other) { if (other.tag == "Player") { this.gameObject.SetActive(false); } } }