Пример #1
0
 protected override void OnModelDestroy()
 {
     GameStateManager.Clean();
     TimekeeperModel.Destroy();
     GameStateManager = null;
     TimekeeperModel  = null;
 }
Пример #2
0
 public void Clean()
 {
     _trackerFinishCallback = null;
     FinishTracker();
     _timekeeperModel = null;
     _trackingEnemies = null;
 }
Пример #3
0
 public Tracker(TimekeeperModel timekeeper)
 {
     CurrentTrackingType = TrackingType.None;
     _timekeeperModel    = timekeeper;
 }
Пример #4
0
 public WaveSystemModel(CameraModel gameCamera, TimekeeperModel timekeeper)
 {
     _gameCamera     = gameCamera;
     _sectionTracker = new Tracker(timekeeper);
 }
Пример #5
0
 public GameModel(float orthographicSize)
 {
     GameCamera       = new CameraModel(orthographicSize);
     GameStateManager = new GameStateManager <GameModel>(this);
     TimekeeperModel  = new TimekeeperModel();
 }
Пример #6
0
 protected override void OnViewReady()
 {
     _model = MVCUtil.GetModel <TimekeeperModel>(this);
 }
Пример #7
0
 protected override void OnViewDestroy()
 {
     _model = null;
 }
Пример #8
0
 protected override void OnModelDestroy()
 {
     base.OnModelDestroy();
     _timekeeper.UnlistenFromFrameTick(Update);
     _timekeeper = null;
 }
Пример #9
0
 public TurretModel(TimekeeperModel timekeeper)
 {
     _timekeeper = timekeeper;
     _timekeeper.ListenToFrameTick(Update);
 }