示例#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);
    }
示例#2
0
 void Awake()
 {
     CS    = this;
     Modal = ModalDialogueSystem.instance();
 }
示例#3
0
 private void Start()
 {
     QM  = QuestManager.instance;
     MDS = ModalDialogueSystem.instance();
 }