void OnTriggerEnter(Collider coll) { if (!coll.CompareTag("Unit")) { return; } UI.S.PlaySound("CandyCollect"); ResourceManager.S.AddResources(value); HitText.CreateYellow(this.transform.position, value); Destroy(gameObject); }