コード例 #1
0
        private void ShowAutomationPopup()
        {
            if (Globals.IsExecuting)
            {
                return;
            }

            var items = new List <AutomationPopup.TreeItem>();

            foreach (var item in automations)
            {
                items.Add(new AutomationPopup.TreeItem <Vector2, Type>(item.Key, Input.MousePosition, item.Value, CreateAutomation));
            }
            AutomationPopup.ShowAsContext(items.ToArray());
        }
コード例 #2
0
ファイル: Popup.cs プロジェクト: Hengle/Unity3D-Automatron
 public Searcher(AutomationPopup popup)
 {
     this.popup = popup;
 }