Exemplo n.º 1
0
 void _OnUpgradeCollected(UpgradeCollectedEvent e)
 {
     readyForWave   = true;
     upgradeSpawned = false;
     foreach (GameObject upgrade in spawnedUpgrades)
     {
         if (upgrade != null)
         {
             Destroy(upgrade);
         }
     }
     if (e.name == "shotgun")
     {
         validPrefabs.RemoveAt(2);
     }
 }
Exemplo n.º 2
0
 void _OnUpgradeCollected(UpgradeCollectedEvent e)
 {
     EventBus.Publish <TutorialCompleteEvent>(new TutorialCompleteEvent());
     EventBus.Unsubscribe(upgrade_collected_subscription);
 }