private void ClearStorage(ICheckpointData data) { if (data != null && data.GameObject != null) { GameObject.Destroy(data.GameObject); } }
private void MoveToStorage(ICheckpointData data) { // Move object into storage and disable it data.GameObject.transform.parent = StorageContainer.transform; data.GameObject.SetActive(false); }