public void Execute() { if (value != null) { value.Execute(); } if (Location != Vector2.zero) { GeographyController.Global.CurrentLocation = GeographyController.Global.Map[Location]; } if (!DoNotWriteToLoc) { MainController.Global.nextlocact = text + "\n"; if (!text.StartsWith("-")) { MainController.Global.nextlocact = "> " + MainController.Global.nextlocact; } } else { MainController.Global.nextlocact = ""; } if (func != null) { MainController.Global.gameObject.GetComponent <Functions> ().SendMessage(func); } if (Scene != null) { SavesSystem.Global.Set("loc", Scene); MainController.Global.LoadScene(Scene).Draw(); return; } if (UnityScene != null) { SceneManager.LoadScene(UnityScene); return; } ErrorController.Global.NoActionOnButton(text); }