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