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); }
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); }