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

            return(View("ListWithLinks", stars));
        }
Esempio n. 3
0
        public ActionResult List()
        {
            List <Star> stars = StarDatabase.GetStars();

            return(View("List", stars));
        }