예제 #1
0
    void BtnMissionEditorOnClick(PointerEventData eventData, UI_Event ev)
    {
        Mission         mis       = ev.GetData <Mission>("d");
        UIMissionEditor ui_editor = MenuManager.instance.CreateMenu <UIMissionEditor>();

        ui_editor.OpenScreen();
        ui_editor.mIsEdit = true;
        ui_editor.SetEditMission(mis);
    }
예제 #2
0
    void BtnAddNewOnClick(PointerEventData eventData, UI_Event ev)
    {
        //CloseScreen();
        UIMissionEditor ui_editor = MenuManager.instance.CreateMenu <UIMissionEditor>();

        ui_editor.mIsEdit = false;
        ui_editor.OpenScreen();
        Mission mis = new Mission();

        mis.mDesc = "test";
        ui_editor.SetEditMission(mis);
    }