public QuestAction CreateAlertAction(string text) { var alertAction = AlertQuestAction.CreateInstance <AlertQuestAction>(); AddContents(alertAction.contentList, CreateBodyContent(text)); return(alertAction); }
private void RemoveSubassets(AlertQuestAction alertQuestAction) { if (alertQuestAction == null || alertQuestAction.contentList == null) { return; } for (int i = 0; i < alertQuestAction.contentList.Count; i++) { var content = alertQuestAction.contentList[i]; AssetUtility.DeleteFromAsset(content, QuestEditorWindow.selectedQuest); } }