Пример #1
0
        protected override void Initialize()
        {
            CollisionManager = CollisionManager.GetInstance(this);
            InputManager     = InputManager.GetInstance(this);
            BasicManager     = BasicManager.GetInstance(this);
            if (useBloom)
            {
                bloom = new BloomComponent(this);
            }

            Overlay      = new Overlay(this);
            Camera       = new Camera(this);
            StateManager = new StateManager(this);

            Components.Add(InputManager);
            //Components.Add(BasicManager);
            //Components.Add(CollisionManager);
            Components.Add(StateManager);
            //if (useBloom)
            //    Components.Add(bloom);
            //Components.Add(Overlay);
            //Components.Add(Camera);

            base.Initialize();
        }
Пример #2
0
        protected override void Initialize()
        {
            CollisionManager = CollisionManager.GetInstance(this);
            InputManager = InputManager.GetInstance(this);
            BasicManager = BasicManager.GetInstance(this);
            if (useBloom)
                bloom = new BloomComponent(this);

            Overlay = new Overlay(this);
            Camera = new Camera(this);
            StateManager = new StateManager(this);

            Components.Add(InputManager);
            //Components.Add(BasicManager);
            //Components.Add(CollisionManager);
            Components.Add(StateManager);
            //if (useBloom)
            //    Components.Add(bloom);
            //Components.Add(Overlay);
            //Components.Add(Camera);

            base.Initialize();
        }
Пример #3
0
 public static BasicManager GetInstance(Game game)
 {
     return _basicManager ?? (_basicManager = new BasicManager(game));
 }
Пример #4
0
 public static BasicManager GetInstance(Game game)
 {
     return(_basicManager ?? (_basicManager = new BasicManager(game)));
 }