void CheckForChangedOptions() { for (int i = 0; i < choiceHolder.createdOptions.Count; i++) { ChoiceOption inspectedOption = choiceHolder.createdOptions [i]; if (inspectedOption.removeOption) { choiceHolder.Insp_RemoveOption(i); createdOptions.RemoveAt(i); prevChoiceCount--; Debug.Log("destroyed option, repainting scene"); SceneView.RepaintAll(); } else if (inspectedOption.buttonText != createdOptions [i].buttonText || inspectedOption.dialogText != createdOptions [i].dialogText) { createdOptions [i].buttonText = inspectedOption.buttonText; createdOptions [i].dialogText = inspectedOption.dialogText; choiceHolder.createdOptions [i].UpdateText(); } else if (inspectedOption.longerDialog != createdOptions[i].longerDialog) { createdOptions [i].longerDialog = inspectedOption.longerDialog; choiceHolder.createdOptions [i].UpdateText(); } else if (inspectedOption.responseAction != createdOptions [i].responseAction) { createdOptions [i].responseAction = inspectedOption.responseAction; inspectedOption.UpdateResponseAction(); } } }