// Start is called before the first frame update void Awake() { //make static or destroy if (starDatabase == null) { DontDestroyOnLoad(gameObject); starDatabase = this; } else { Destroy(gameObject); } }
public ActionResult ListWithLinks() { List <Star> stars = StarDatabase.GetStarsAndLinks(); return(View("ListWithLinks", stars)); }
public ActionResult List() { List <Star> stars = StarDatabase.GetStars(); return(View("List", stars)); }