Example #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;
             }
         }
     }
 }
Example #2
0
 private void OnSnrk2UnitReachedBase(Snrk2Unit unit)
 {
     GainCurrency(Util.upgradeSettings.crystalSnrk2Value);
 }
Example #3
0
 private void OnCrystalPickedUp(Snrk2Unit unit)
 {
     PlaySound(data.crystalPickedUp);
 }
Example #4
0
 private void OnSnrk2UnitReachedBase(Snrk2Unit unit)
 {
     PlaySound(data.crystalDeposited);
 }