Esempio n. 1
0
 public void generateMinimon(ObjectsMover mover) {
   mover.destroyObject(true, true);
   monm.spawnMinimon(transform.position, monm.numMinimonSpawn);
 }
Esempio n. 2
0
  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);
  }
Esempio n. 3
0
  public bool absorbMinimon(ObjectsMover mover) {
    if (!((MiniMonsterMover)mover).isTimeElapsed()) return false;

    if (minimonCounter < monm.maxEnlargeCount) {
      minimonCounter++;
      transform.localScale += monm.enlargeScalePerMinimon * Vector3.one;
    }
    return true;
  }