private GamePlayContentManager()
 {
     drawManager = GamePlayDrawManager.GetInstance();
     inputManager = GamePlayInputManager.GetInstance();
     logicManager = GamePlayLogicManager.GetInstance();
     playerManager = PlayerManager.GetInstance();
 }
예제 #2
0
        public Player(Texture2D sprite, Vector2 position, PlayerIndex playerNum, Stats entStats, GameUIElement playerUI)
            : base(sprite, position, entStats)
        {
            this.playerNum = playerNum;
            curState = PlayerState.PLAYER_OTHER;

            this.playerUI = playerUI;

            this.testAttack = new SimpleAttack(new Rectangle(0, 0, 32, 16), this, 1.5f, 50);

            this.playerCenter = new Vector2(sprite.Width / 2, sprite.Height / 2);

            this.logicManager = GamePlayLogicManager.GetInstance();
            this.drawManager = GamePlayDrawManager.GetInstance();
            this.playerManager = PlayerManager.GetInstance();
        }
 public static GamePlayDrawManager GetInstance()
 {
     if (instance == null)
         instance = new GamePlayDrawManager();
     return instance;
 }