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