public override void Resume() { GResource.LoadTextures(); var imageFon = new GImage(Game); imageFon.SetTexture(GResource.game_fon); imageFon.SetWidth(Game.GetWindowWidth()); imageFon.SetHeight(Game.GetWindowHeight()); imageFon.SetX(Game.GetWindowWidth() / 2); imageFon.SetY(Game.GetWindowHeight() / 2); AddElement(imageFon); tree = new ChristmasTree(Game); tree.GenerateDecorations(3); train = new Train(Game, GResource.train); train.Initialize(Game.GetWindowWidth() / 2, 65, 90, 30); train.SetChristmasTree(tree); cat = new Cat(Game, Game.GetWindowWidth() / 2, Game.GetWindowHeight() / 2, 50, 50); cat.AddTextures(GResource.lcat, Cat.STATE.LEFT); cat.AddTextures(GResource.rcat, Cat.STATE.RIGHT); cat.Bump(); cat.SetChristmasTree(tree); // AddElement(imageCat); }