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; } } } }
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); }