public void Dispose() { _game.PlayerData.BossPlayTime(_boss.BossType, _game.PlayerData.BossPlayTime(_boss.BossType) + _playTime); MoverManager.Clear(); ParticleManager.Clear(); foreach (var bullet in _bullets) { bullet.Destroy(); } _bullets.RemoveAll(b => !b.Used); _boss.Dispose(); _player.Dispose(); // Should be loaded _boss = null; _endGame = false; _cameraZoomTimer.Stop(); _explosionTimer.Stop(); _gameIsFinished = false; _ready = false; _game.Camera.SetZoom(1f); _transitioningToEndGame = false; _cantMove = false; }
public void ShutDown() { if (nextScene == SceneType.Pause) { return; } map.Clear(); //マップ解放 map = null; gameManager.ReleaseMap(); mapItemManager.Initialize(); //Item解放 mapItemManager = null; pManager.Clear(); pManager = null; characterManager = null; gameManager.EnemySetting.Clear(); ui = null; stageManager.ReleaseBossBGM(); }
/// <summary> /// Clear all particles in the system /// </summary> /// <param name="withChildren">Should the childrens particles be stopped as well?</param> public void Clear(bool withChildren = true) { _manager.Clear(withChildren); }