private void meteoriteNextTick(Meteorite meteorite) { if (meteorite.Active) { meteorite.NextTick(); } }
private void addAndSummonMeteorite() { for (int i = 0; i < maxAmountOfMeteoritesFallingSimultaneously; i++) { if (!Meteorites[i].Active) { Meteorites[i] = new Meteorite(this); Meteorites[i].MeteoriteSummon(Random.Next(maxTicksMeteoriteFalling) + 1, Random.Next(maxTicksMeteoriteCracking) + 1, Random.Next(maxTicksMeteoriteBeforeDissolving) + 1, mainSentry.GetRandCoordsOnMap().Item1, mainSentry.GetRandCoordsOnMap().Item2); } } }
public MeteoriteShard(int _x, int _y, Meteorite meteorite) : base(_x, _y) { this.meteorite = meteorite; }