private GamePlayContentManager() { drawManager = GamePlayDrawManager.GetInstance(); inputManager = GamePlayInputManager.GetInstance(); logicManager = GamePlayLogicManager.GetInstance(); playerManager = PlayerManager.GetInstance(); }
public MainMenu(ContentManager cm) : base(cm) { this.cm = cm; this.pm = PlayerManager.GetInstance(); makeButtons(); }
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 GameEndTrigger(Rectangle boundingBox) { this.boundingBox = boundingBox; pm = PlayerManager.GetInstance(); sm = StateManager.GetInstance(); }
public static PlayerManager GetInstance() { if (instance == null) instance = new PlayerManager(); return instance; }