Example #1
0
 public void OnExplode()
 {
     if (parent != null)
     {
         parent.Empty = true;
         parent.SetUsable(true);
     }
     spawner.SpawnRandomPowerup(transform.position);
     gameObject.SetActive(false);
 }