static public void SelectCom(GKToyNode node, GKToyData data)
        {
            switch (node.doubleClickType)
            {
            // Task.
            case 0:
                GKToyMakerTaskCom.PopupTaskWindow();
                GKToyMakerTaskCom.InitSubData((GKToyTask)node, data);
                break;

            // Interact Task.
            case 1:
                GKToyMakerSubInteractCom.PopupTaskWindow();
                GKToyMakerSubInteractCom.InitSubData((GKToySubTaskInteract)node, data);
                break;

            // Hunt Task.
            case 2:
                GKToyMakerSubHuntingCom.PopupTaskWindow();
                GKToyMakerSubHuntingCom.InitSubData((GKToySubTaskHunting)node, data);
                break;

            // Collect Task.
            case 4:
                GKToyMakerSubCollectCom.PopupTaskWindow();
                GKToyMakerSubCollectCom.InitSubData((GKToySubTaskCollect)node, data);
                break;

            default:
                break;
            }
        }
Пример #2
0
 public static void PopupTaskWindow()
 {
     instance = GetWindow <GKToyMakerSubInteractCom>(GKToyTaskMaker._GetTaskLocalization("Interact Task Config"), true);
     _styleCenrer.alignment = TextAnchor.MiddleCenter;
     _styleRight.alignment  = TextAnchor.MiddleRight;
     instance.minSize       = new Vector2(500, 250);
     instance.maxSize       = new Vector2(500, 250);
 }
Пример #3
0
 void OnEnable()
 {
     if (null == instance)
     {
         instance       = GetWindow <GKToyMakerSubInteractCom>(GKToyTaskMaker._GetTaskLocalization("Interact Task Config"), true);
         wantsMouseMove = true;
         minSize        = new Vector2(500, 250);
         maxSize        = new Vector2(500, 250);
     }
 }
Пример #4
0
 void OnDestroy()
 {
     instance = null;
 }