public void ActivateTimeWarp() { if (RockBarrier != null) { RockBarrier.MoveToWorld(new Point3D(RockBarrier.X, RockBarrier.Y, RockBarrier.Z - 50), Map.TerMur); } TimeWarpEnds = DateTime.UtcNow + TimeWarpDuration; Timer = Timer.DelayCall(TimeSpan.FromMinutes(1), TimeSpan.FromMinutes(1), OnTick); }
private void Cleanup() { if (KotlBattleSimulator.Instance != null && KotlBattleSimulator.Instance.Active) { KotlBattleSimulator.Instance.EndSimulation(); } if (RockBarrier != null && RockBarrier.Location != RockBarrierLocation) { RockBarrier.MoveToWorld(RockBarrierLocation, Map.TerMur); } }