private void OnCollisionEnter(Collision other) { GameObject player = other.gameObject; if (player.CompareTag("Player")) { player.GetComponent <PlayerController>().HealBy(heal); // Debug.Log("FOOD CONSUMED"); gameObject.SetActive(false); pooler.enqueueFood(gameObject); } }