Ejemplo n.º 1
0
 public void Yes()
 {
     if (aAction.Equals("deleteFile"))
     {
         System.IO.File.Delete(vAction);
         CargarMapa cm = ob as CargarMapa;
         cm.gameObject.SetActive(true);
     }
     if (aAction.Equals("limpiarMapa"))
     {
         var sl = GameObject.FindGameObjectWithTag("GameController").GetComponent <SaveLoad>();
         sl.ur.ClearAllLGO();
         for (int i = 0; i < sl.parent.gameObject.transform.childCount; i++)
         {
             Transform t = sl.parent.gameObject.transform.GetChild(i);
             Destroy(t.gameObject);
         }
         sl.parent.position           = sl.parentInicio.transform.position;
         Camera.main.orthographicSize = 10;
     }
     if (aAction.Equals("salir"))
     {
         Application.Quit();
     }
     this.gameObject.SetActive(false);
 }
Ejemplo n.º 2
0
 public void No()
 {
     print("NO");
     if (aAction.Equals("deleteFile"))
     {
         CargarMapa cm = ob as CargarMapa;
         cm.gameObject.SetActive(true);
     }
     this.gameObject.SetActive(false);
 }