private void LoadPlayer() { if (Player == null) { Player = new PlayerObj("PlayerIdle_Character", PlayerIndex.One, (Game as Game).PhysicsManager, null, Game as Game); Player.Position = new Vector2(200f, 200f); Player.Initialize(); } }
private void LoadPlayer() { if (m_player == null) { m_player = new PlayerObj("PlayerIdle_Character", PlayerIndex.One, (Game as Game).PhysicsManager, null, Game as Game) { Position = new Vector2(200f, 200f) }; m_player.Initialize(); RogueAPI.Game.Player.Instance = new RogueAPI.Game.Player(m_player); } }