Exemple #1
0
 private void OnCrystalCreated(EnemyCrystal crystal)
 {
     foreach (Unit unit in units)
     {
         Snrk2Unit snrkUnit = (Snrk2Unit)unit;
         if (snrkUnit.IsIdleState() || snrkUnit.IsReturniningState())
         {
             if (Util.crystalManager.HasValidCrystals())
             {
                 snrkUnit.SetupUnitToSearchForCrystal();
                 return;
             }
         }
     }
 }
Exemple #2
0
 private void OnSnrk2UnitReachedBase(Snrk2Unit unit)
 {
     GainCurrency(Util.upgradeSettings.crystalSnrk2Value);
 }
 private void OnCrystalPickedUp(Snrk2Unit unit)
 {
     PlaySound(data.crystalPickedUp);
 }
 private void OnSnrk2UnitReachedBase(Snrk2Unit unit)
 {
     PlaySound(data.crystalDeposited);
 }