Esempio n. 1
0
        public static void Show <T>(ProvenceSystem system) where T : ProvenceSystem
        {
            SystemEditor window = GetWindow <SystemEditor>();

            window.titleContent = new GUIContent(Regex.Replace(typeof(T).Name, @"((?<=\p{Ll})\p{Lu})|((?!\A)\p{Lu}(?>\p{Ll}))", " $0") + " Editor");
            window.eventManager.Raise <SelectKey <ProvenceSystem> >(new SelectKey <ProvenceSystem>(system));
        }
Esempio n. 2
0
 protected void OpenSystemEditor <T>() where T : ProvenceSystem
 {
     if (chosenKey != null)
     {
         SystemEditor.Show <T>(chosenKey.GetSystem <T>());
     }
 }