public static ModalDialogueSystem instance() { if (!modalDialogueSystem) { modalDialogueSystem = FindObjectOfType(typeof(ModalDialogueSystem)) as ModalDialogueSystem; if (!modalDialogueSystem) { Debug.LogError("Modal instance cannot be found!"); } } return(modalDialogueSystem); }
void Awake() { CS = this; Modal = ModalDialogueSystem.instance(); }
private void Start() { QM = QuestManager.instance; MDS = ModalDialogueSystem.instance(); }