Beispiel #1
0
 public static (DialogResult Result, object Target) RequestInput(IWin32Window parent, int enabledItemIndex, ScoreEditor editor)
 {
     using (var f = new FGoTo()) {
         f._editor           = editor;
         f._enabledItemIndex = enabledItemIndex;
         f.Localize(LanguageManager.Current);
         f.MonitorLocalizationChange();
         var r = f.ShowDialog(parent);
         f.UnmonitorLocalizationChange();
         var target = f._target;
         return(r, target);
     }
 }
Beispiel #2
0
 // Start is called before the first frame update
 void Start()
 {
     gameManager = GameObject.Find("GameManager").GetComponent <GameManager>();
     scoreEditor = GameObject.Find("ScoreEditor").GetComponent <ScoreEditor>();
 }