public Game() { _gameImpl = new MonoGameImpl(); Content = new ContentManager(_gameImpl.Content); Stage = new GameStage(); Input = new InputManager(); State = new GameStateManager(Input, Content, Stage); _gameImpl.State = State; ConvertUnits.SetDisplayUnitToSimUnitRatio(64f); }
public Game() { _gameImpl = new MonoGameImpl(); _content = new ContentManager(_gameImpl.Content); Stage = new GameStage(); Input = new InputManager(); State = new GameStateManager(Input, _content, Stage); _gameImpl.State = State; ConvertUnits.SetDisplayUnitToSimUnitRatio(64f); }
/// <summary> /// Removes GameObject from game. /// </summary> public void Destroy() { Parent?.RemoveChild(this); GameStage?.RemoveGameObject(this); }