Exemplo n.º 1
0
 public static CollisionDetector GetInstance()
 {
     if (_collisionDetector == null)
     {
         _collisionDetector = new CollisionDetector();
     }
     return _collisionDetector;
 }
Exemplo n.º 2
0
        public Level()
        {
            Viewer = new WorldViewer();
            _collisionDetector = CollisionDetector.GetInstance();
            _totalCollectableItems = 0;
            _timeRemaining = TimeSpan.FromMinutes(2.0);

            CreateCamera();
            InitializeLayers();
        }