Example #1
0
    public static ModalDialogueSystem instance()
    {
        if (!modalDialogueSystem)
        {
            modalDialogueSystem = FindObjectOfType(typeof(ModalDialogueSystem)) as ModalDialogueSystem;
            if (!modalDialogueSystem)
            {
                Debug.LogError("Modal instance cannot be found!");
            }
        }

        return(modalDialogueSystem);
    }
Example #2
0
 void Awake()
 {
     CS    = this;
     Modal = ModalDialogueSystem.instance();
 }
Example #3
0
 private void Start()
 {
     QM  = QuestManager.instance;
     MDS = ModalDialogueSystem.instance();
 }