public void AddLandScape(Landscapes landscape) { using (PhotoContainer ctx = new PhotoContainer()) { ctx.Landscapes.Add(landscape); ctx.SaveChanges(); } }
public static Landscapes Load_LastLandscapeVisited() { Landscapes landscape = Landscapes.ISLAND; if (PlayerPrefs.HasKey("LastLandscapeVisited")) { landscape = (Landscapes)PlayerPrefs.GetInt("LastLandscapeVisited"); } return(landscape); }
public static void Save_LastLandscapeVisited(Landscapes landscape) { PlayerPrefs.SetInt("LastLandscapeVisited", (int)landscape); }