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

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

            return((ActionResult)mc.IndexPost(Request, c)["view"]);
            //return null;
        }
Exemplo 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;
 }
Exemplo n.º 4
0
 //Singletone pattern
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else
     {
         if (instance != this)
         {
             Destroy(gameObject);
         }
     }
 }
Exemplo n.º 5
0
        public ActionResult Index3()
        {
            Mission1Controller mc = new Mission1Controller(Server);

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