public override void OnLevelUnloading() { if (_automaticBulldozer != null) { _automaticBulldozer.Destroy(); } _automaticBulldozer = null; base.OnLevelUnloading(); }
public override void OnLevelLoaded(LoadMode mode) { _automaticBulldozer = new AutomaticBulldozer(); base.OnLevelLoaded(mode); }