Example #1
0
    // Start is called before the first frame update
    new void Start()
    {
        day = GameManager.instance.getDay();
        switch (day)
        {
        case 1:
            id = 0;
            break;

        case 2:
            id = 9;
            break;

        case 3:
            id = 12;
            break;

        case 4:
            id = 15;
            break;
        }

        dogMoveScript         = dog.GetComponent <DogMove>();
        dogMoveScript.enabled = false;  // 스크립트 표시할 때 움직이지 못하게

        Debug.Log("day: " + day + "id: " + id);

        base.Start();

        JsonPath   = "/Plugins/MapDlgData.json";
        loadDlgNum = 1;
        dlgOn      = false;
        dlgSet(dlgOn);
        dlgData = base.LoadDialogue(1);
    }
Example #2
0
    // Start is called before the first frame update
    new void Start()
    {
        base.Start();
        dogMoveScript = dog.GetComponent <DogMove>();


        JsonPath   = "/Plugins/ItemDlgData.json";
        loadDlgNum = 3;
        dlgOn      = false;
        dlgSet(dlgOn);
        dlgData = base.LoadDialogue(3);
    }
Example #3
0
    public int itemnum = 0; //tutorial item

    // Start is called before the first frame update
    new void Start()
    {
        dogMoveScript         = dog.GetComponent <DogMove>();
        dogMoveScript.enabled = false;  // 스크립트 표시할 때 움직이지 못하게

        base.Start();
        JsonPath   = "/Plugins/DlgData.json";
        loadDlgNum = 0;
        dlgOn      = false;
        dlgSet(dlgOn);
        dlgData = base.LoadDialogue(0);
    }