void Update() { if (destroyableLogic != null) { if (destroyableLogic.DropLoot() == true) { Instantiate(dropObjectPrefab, this.transform.position, Quaternion.identity); Destroy(gameObject); } } }