protected override void OnModelDestroy() { GameStateManager.Clean(); TimekeeperModel.Destroy(); GameStateManager = null; TimekeeperModel = null; }
public void Clean() { _trackerFinishCallback = null; FinishTracker(); _timekeeperModel = null; _trackingEnemies = null; }
public Tracker(TimekeeperModel timekeeper) { CurrentTrackingType = TrackingType.None; _timekeeperModel = timekeeper; }
public WaveSystemModel(CameraModel gameCamera, TimekeeperModel timekeeper) { _gameCamera = gameCamera; _sectionTracker = new Tracker(timekeeper); }
public GameModel(float orthographicSize) { GameCamera = new CameraModel(orthographicSize); GameStateManager = new GameStateManager <GameModel>(this); TimekeeperModel = new TimekeeperModel(); }
protected override void OnViewReady() { _model = MVCUtil.GetModel <TimekeeperModel>(this); }
protected override void OnViewDestroy() { _model = null; }
protected override void OnModelDestroy() { base.OnModelDestroy(); _timekeeper.UnlistenFromFrameTick(Update); _timekeeper = null; }
public TurretModel(TimekeeperModel timekeeper) { _timekeeper = timekeeper; _timekeeper.ListenToFrameTick(Update); }