protected override void LoadContent() { Resourses = ResourceManager.GetInstance(this.Content); spriteBatch = new SpriteBatch(GraphicsDevice); MenuState = new Menu(Resourses.Get_Texture("Menu_Picture"), Resourses.Get_Texture("Play"), Resourses.Get_Texture("Exit"), Resourses.Get_Texture("Cursor"), Resourses.Get_Texture("Save"), Resourses.Get_Texture("Load")); OceanTexture = Resourses.Get_Texture("Ocean"); if (Game == true) { operations = new Operations(Simple_Count, Predatory_Count, Deep_Count); } }
public static ResourceManager GetInstance(ContentManager Content) { if (Resource_Manager == null) { lock (typeof(ResourceManager)) { if (Resource_Manager == null) Resource_Manager = new ResourceManager(Content); } } return Resource_Manager; }