// Unity Update Method void Update() { hull.Update(); turret.Update(); if (destroyTimer > 0.0f) { destroyTimer -= Time.deltaTime; if (destroyTimer <= 0.0f) { GameObject detonationItem = detonationManager.GetItem(); detonationItem.transform.position = new Vector3(transform.position.x, 1.7f, transform.position.z); detonationItem.SetActive(true); detonationManager.RecycleItemAfterSecs(detonationItem, 3.0f); UnityEngine.Object.Destroy(this.gameObject); } } }