public void generateMinimon(ObjectsMover mover) { mover.destroyObject(true, true); monm.spawnMinimon(transform.position, monm.numMinimonSpawn); }
public void goodPartsEncounter(ObjectsMover mover, int howMany, bool encounterPlayer = true) { if (mover.tag != "GoldenCube" && howMany > 0) { CubeManager.cm.addPoints(howMany, mover.transform.position); } if (mover.energyGets() > 0) { EnergyManager.em.getEnergy(mover.energyGets()); DashManager.dm.getLarger(); } if (encounterPlayer || (!encounterPlayer && mover.tag == "GoldenCube")) mover.encounterPlayer(); else mover.destroyObject(true, true); }
public bool absorbMinimon(ObjectsMover mover) { if (!((MiniMonsterMover)mover).isTimeElapsed()) return false; if (minimonCounter < monm.maxEnlargeCount) { minimonCounter++; transform.localScale += monm.enlargeScalePerMinimon * Vector3.one; } return true; }