예제 #1
0
    public void TutorialStart()
    {
        scriptName    = "Tutorial1";
        dialogue      = LoadDialogue.LoadDialogueData(scriptName);
        dialogueState = 0;

        StartCoroutine(Talking());
    }
예제 #2
0
    public void ReasonFirst() //for tutorial
    {
        GameManager.inst.ChangeState(State.Reasoning);

        scriptName    = "Reason/ReasonForTutorial";
        dialogue      = LoadDialogue.LoadDialogueData(scriptName);
        dialogueState = 0;

        StartCoroutine(Talking());
    }
예제 #3
0
    public void TutorialFourth()
    {
        checkTrigger[2] = true;
        scriptName      = "Tutorial4";
        dialogue        = LoadDialogue.LoadDialogueData(scriptName);
        dialogueState   = 0;

        StartCoroutine(Talking());

        CharacterUI.inst.AddExplain(0, "어째서인지 용왕이라는 사람..이 죽어있고 그 범인으로 지목 당했다. 어서 결백을 증명하자.");
    }
예제 #4
0
    public void TutorialSecond()
    {
        checkTrigger[0] = true;
        scriptName      = "Tutorial2";
        dialogue        = LoadDialogue.LoadDialogueData(scriptName);
        dialogueState   = 0;

        StartCoroutine(Talking());

        secondClue.SetActive(true); // 두 번째 단서를 얻어야 할 시점에서만 active되도록
    }
예제 #5
0
    void Start()
    {
        //LoadDialogue.LoadDialogueData(npcname, npccode);
        //dialogue = LoadDialogue.dialogues[(int)npccode];
        dialogue      = LoadDialogue.LoadDialogueData("npc/" + ((int)npcData.locationCode).ToString() + "_" + ((int)npcData.npcCode).ToString());
        dialogueState = 0;

        cursor = GameManager.inst.npcCursor;

        hotSpot.x = cursor.width / 2;
        hotSpot.y = cursor.height / 2;
    }
예제 #6
0
    public void CutSceneNum(int a)
    {
        scriptName    = "CutScene" + a;
        dialogue      = LoadDialogue.LoadDialogueData(scriptName);
        dialogueState = 0;

        Debug.Log(a);
        if (a > 0)
        {
            background[a - 1].SetActive(true);
        }

        StartCoroutine(Talking());
    }
예제 #7
0
    public void TutorialThird()
    {
        checkTrigger[1] = true;
        scriptName      = "Tutorial3";
        dialogue        = LoadDialogue.LoadDialogueData(scriptName);
        dialogueState   = 0;

        StartCoroutine(Talking());

        /*
         * // 튜토리얼 진행 중 강제적으로 아귀대신과 말하게되어 바로 active 시킴
         * NPCManager.inst.SetNpcActive(NPCCode.Angler);
         * CharacterUI.inst.characterSlots[4].GetComponent<CharacterButton>().OpenButton(anglerData);
         * CharacterUI.inst.AddExplain(4, "나를 본 적이 없다고 한다.");
         */
    }
예제 #8
0
    private void Awake()
    {
        if (_instance == null || _instance != this)
        {
            _instance = this;
        }
        FILE_PATH = $"{Application.dataPath}/Save Files/Endpoint";
        Application.targetFrameRate = 60;
        LoadMaxStats();

        if (OneTimeEvents.Count > 0)
        {
            LoadOneTimeEvents();
        }

        //If DB hasn't been initialized yet, do that
        if (!Initialized)
        {
            InputManager.instance.currentState = InputManager.InputState.MAIN_MENU;
            Initialized  = true;
            currentScene = (Scenes)SceneManager.GetActiveScene().buildIndex;
            Sector       = "CENTRAL PROCESSING";
            Timer        = 0;

            //Refresh progress lists
            LoadDataBaseEntries.LoadAllDataEntries();
            LoadObjectives.LoadAllObjectives();
            LoadDialogue.LoadDialogueItems();
        }
        //Create a directory for save files if one doesn't exist
        if (!Directory.Exists(Application.dataPath + "/Save Files"))
        {
            Directory.CreateDirectory(Application.dataPath + "/Save Files");
        }

        //Retrieve updated new SaveFileID
        string path = $"{FILE_PATH}{SaveFileID}.sav";

        while (File.Exists(path))
        {
            SaveFileID++;
            path = $"{FILE_PATH}{SaveFileID}.sav";
        }
        LoadMaxStats();
    }