Esempio n. 1
0
        public ActionResult Delete(FormCollection _form)
        {
            Mission1Controller mc = new Mission1Controller(Server);

            return((ActionResult)mc.Delete(Request)["view"]);
            // return null;
        }
Esempio n. 2
0
        public ActionResult Index(tblmission c)
        {
            Mission1Controller mc = new Mission1Controller(Server);

            return((ActionResult)mc.IndexPost(Request, c)["view"]);
            //return null;
        }
Esempio n. 3
0
 // Create the singletone for the Mission1Manager. Also checks if there is another present and logs and error.
 void CreateSingleton()
 {
     if (instance != null)
     {
         Debug.LogError("Mission1Manager already exists while it should be instantiated only once.");
         Destroy(gameObject);
         return;
     }
     instance = this;
 }
Esempio n. 4
0
 //Singletone pattern
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else
     {
         if (instance != this)
         {
             Destroy(gameObject);
         }
     }
 }
Esempio n. 5
0
        public ActionResult Index3()
        {
            Mission1Controller mc = new Mission1Controller(Server);

            return((ActionResult)mc.Index3(Request)["view"]);
        }