コード例 #1
0
    void d3()
    {
        desc.text = PrintText.printText(currentScene);

        if (Input.GetKeyDown(KeyCode.Keypad1) || Input.GetKeyDown(KeyCode.Alpha1))
        {
            currentScene = wedding.getScenes().Find(x => x.getCode() == "D1");
        }
        else if (Input.GetKeyDown(KeyCode.Keypad2) || Input.GetKeyDown(KeyCode.Alpha2))
        {
            currentScene = wedding.getScenes().Find(x => x.getCode() == "D2");
        }
        else if (Input.GetKeyDown(KeyCode.Keypad3) || Input.GetKeyDown(KeyCode.Alpha3))
        {
            currentScene = wedding.getScenes().Find(x => x.getCode() == "D4");
        }
        else if (Input.GetKeyDown(KeyCode.Keypad4) || Input.GetKeyDown(KeyCode.Alpha4))
        {
            currentScene = wedding.getScenes().Find(x => x.getCode() == "DJ");
        }
        else if (Input.GetKeyDown(KeyCode.Keypad5) || Input.GetKeyDown(KeyCode.Alpha5))
        {
            currentScene = wedding.getScenes().Find(x => x.getCode() == "CA");
        }
        else if (Input.GetKeyDown(KeyCode.C))
        {
            map.SetActive(true);
        }
        else if (Input.GetKeyUp(KeyCode.C))
        {
            map.SetActive(false);
        }
    }
コード例 #2
0
    void n2()
    {
        desc.text = PrintText.printText(currentScene);

        if (Input.GetKeyDown(KeyCode.Keypad1) || Input.GetKeyDown(KeyCode.Alpha1))
        {
            currentScene = wedding.getScenes().Find(x => x.getCode() == "N2a");
        }
        else if (Input.GetKeyDown(KeyCode.Keypad2) || Input.GetKeyDown(KeyCode.Alpha2))
        {
            currentScene = wedding.getScenes().Find(x => x.getCode() == "N2b");
        }
        else if (Input.GetKeyDown(KeyCode.Keypad3) || Input.GetKeyDown(KeyCode.Alpha3))
        {
            currentScene = wedding.getScenes().Find(x => x.getCode() == "N2c");
        }
        else if (Input.GetKeyDown(KeyCode.C))
        {
            map.SetActive(true);
        }
        else if (Input.GetKeyUp(KeyCode.C))
        {
            map.SetActive(false);
        }
    }
コード例 #3
0
    void c2d()
    {
        desc.text = PrintText.printText(currentScene);

        if (Input.GetKeyDown(KeyCode.Keypad1) || Input.GetKeyDown(KeyCode.Alpha1))
        {
            currentScene = wedding.getScenes().Find(x => (x.getCode() == "C2d") && (x.getSubCode() == "#1"));
        }
        else if (Input.GetKeyDown(KeyCode.Keypad2) || Input.GetKeyDown(KeyCode.Alpha2))
        {
            currentScene = wedding.getScenes().Find(x => x.getCode() == "C2b");
        }
        else if (Input.GetKeyDown(KeyCode.Keypad3) || Input.GetKeyDown(KeyCode.Alpha3))
        {
            currentScene = wedding.getScenes().Find(x => x.getCode() == "C2c");
        }
        else if (Input.GetKeyDown(KeyCode.Keypad4) || Input.GetKeyDown(KeyCode.Alpha4))
        {
            currentScene = wedding.getScenes().Find(x => x.getCode() == "C");
        }
        else if (Input.GetKeyDown(KeyCode.C))
        {
            map.SetActive(true);
        }
        else if (Input.GetKeyUp(KeyCode.C))
        {
            map.SetActive(false);
        }
    }
コード例 #4
0
    void m1j()
    {
        desc.text = PrintText.printText(currentScene);

        if (Input.GetKeyDown(KeyCode.Keypad1) || Input.GetKeyDown(KeyCode.Alpha1))
        {
            currentScene = wedding.getScenes().Find(x => x.getCode() == "N");

            /*} else if (Input.GetKeyDown(KeyCode.Keypad2) || Input.GetKeyDown(KeyCode.Alpha2)) {
             *
             *  currentScene = wedding.getScenes().Find(x => x.getCode() == "M2");*/
        }
        else if (Input.GetKeyDown(KeyCode.Keypad2) || Input.GetKeyDown(KeyCode.Alpha2))
        {
            currentScene = wedding.getScenes().Find(x => x.getCode() == "B");
        }
        else if (Input.GetKeyDown(KeyCode.Keypad3) || Input.GetKeyDown(KeyCode.Alpha3))
        {
            currentScene = wedding.getScenes().Find(x => x.getCode() == "S");
        }
        else if (Input.GetKeyDown(KeyCode.Keypad4) || Input.GetKeyDown(KeyCode.Alpha4))
        {
            currentScene = wedding.getScenes().Find(x => x.getCode() == "D");
        }
        else if (Input.GetKeyDown(KeyCode.C))
        {
            map.SetActive(true);
        }
        else if (Input.GetKeyUp(KeyCode.C))
        {
            map.SetActive(false);
        }
    }
コード例 #5
0
    void s2a()
    {
        desc.text = PrintText.printText(currentScene);

        if (Input.GetKeyDown(KeyCode.Keypad1) || Input.GetKeyDown(KeyCode.Alpha1))
        {
            currentScene = wedding.getScenes().Find(x => x.getCode() == "S2a1");
        }
        else if (Input.GetKeyDown(KeyCode.Keypad2) || Input.GetKeyDown(KeyCode.Alpha2))
        {
            currentScene = wedding.getScenes().Find(x => x.getCode() == "S2a2");
        }
        else if (Input.GetKeyDown(KeyCode.Keypad3) || Input.GetKeyDown(KeyCode.Alpha3))
        {
            currentScene = wedding.getScenes().Find(x => x.getCode() == "S2a3");
        }
        else if (Input.GetKeyDown(KeyCode.Keypad4) || Input.GetKeyDown(KeyCode.Alpha4))
        {
            currentScene = wedding.getScenes().Find(x => x.getCode() == "S2a4");
        }
        else if (Input.GetKeyDown(KeyCode.Keypad5) || Input.GetKeyDown(KeyCode.Alpha5))
        {
            currentScene = wedding.getScenes().Find(x => x.getCode() == "S2a5");
        }
        else if (Input.GetKeyDown(KeyCode.Keypad6) || Input.GetKeyDown(KeyCode.Alpha6))
        {
            currentScene = wedding.getScenes().Find(x => x.getCode() == "S1");
        }
        else if (Input.GetKeyDown(KeyCode.Keypad7) || Input.GetKeyDown(KeyCode.Alpha7))
        {
            currentScene = wedding.getScenes().Find(x => x.getCode() == "M");
        }
        else if (Input.GetKeyDown(KeyCode.Keypad8) || Input.GetKeyDown(KeyCode.Alpha8))
        {
            currentScene = wedding.getScenes().Find(x => x.getCode() == "C");
        }
        else if (Input.GetKeyDown(KeyCode.Keypad9) || Input.GetKeyDown(KeyCode.Alpha9))
        {
            currentScene = wedding.getScenes().Find(x => x.getCode() == "B");
        }
        else if (Input.GetKeyDown(KeyCode.C))
        {
            map.SetActive(true);
        }
        else if (Input.GetKeyUp(KeyCode.C))
        {
            map.SetActive(false);
        }
    }
コード例 #6
0
    void j()
    {
        desc.text = PrintText.printText(currentScene);

        if (Input.GetKeyDown(KeyCode.Keypad1) || Input.GetKeyDown(KeyCode.Alpha1))
        {
            currentScene = wedding.getScenes().Find(x => x.getCode() == "J1");
        }
        else if (Input.GetKeyDown(KeyCode.Keypad2) || Input.GetKeyDown(KeyCode.Alpha2))
        {
            currentScene = wedding.getScenes().Find(x => x.getCode() == "J2");
        }
        else if (Input.GetKeyDown(KeyCode.Keypad3) || Input.GetKeyDown(KeyCode.Alpha3))
        {
            currentScene = wedding.getScenes().Find(x => x.getCode() == "J3");
        }
        else if (Input.GetKeyDown(KeyCode.Keypad4) || Input.GetKeyDown(KeyCode.Alpha4))
        {
            currentScene = wedding.getScenes().Find(x => x.getCode() == "BUS");
        }
        else if (Input.GetKeyDown(KeyCode.Keypad5) || Input.GetKeyDown(KeyCode.Alpha5))
        {
            currentScene = wedding.getScenes().Find(x => x.getCode() == "T");
        }
        else if (Input.GetKeyDown(KeyCode.Keypad6) || Input.GetKeyDown(KeyCode.Alpha6))
        {
            currentScene = wedding.getScenes().Find(x => x.getCode() == "D");
        }
        else if (Input.GetKeyDown(KeyCode.Keypad7) || Input.GetKeyDown(KeyCode.Alpha7))
        {
            currentScene = wedding.getScenes().Find(x => x.getCode() == "F");
        }
        else if (Input.GetKeyDown(KeyCode.C))
        {
            map.SetActive(true);
        }
        else if (Input.GetKeyUp(KeyCode.C))
        {
            map.SetActive(false);
        }
    }
コード例 #7
0
    void ca()
    {
        desc.text = PrintText.printText(currentScene);

        if (Input.GetKeyDown(KeyCode.Keypad1) || Input.GetKeyDown(KeyCode.Alpha1))
        {
            currentScene = wedding.getScenes().Find(x => x.getCode() == "C");
        }
        else if (Input.GetKeyDown(KeyCode.Keypad2) || Input.GetKeyDown(KeyCode.Alpha2))
        {
            currentScene = wedding.getScenes().Find(x => x.getCode() == "T");
        }
        else if (Input.GetKeyDown(KeyCode.Keypad3) || Input.GetKeyDown(KeyCode.Alpha3))
        {
            currentScene = wedding.getScenes().Find(x => x.getCode() == "J");
        }
        else if (Input.GetKeyDown(KeyCode.Keypad4) || Input.GetKeyDown(KeyCode.Alpha4))
        {
            currentScene = wedding.getScenes().Find(x => x.getCode() == "F");
        }
        else if (Input.GetKeyDown(KeyCode.Keypad5) || Input.GetKeyDown(KeyCode.Alpha5))
        {
            currentScene = wedding.getScenes().Find(x => x.getCode() == "B");
        }
        else if (Input.GetKeyDown(KeyCode.Keypad6) || Input.GetKeyDown(KeyCode.Alpha6))
        {
            currentScene = wedding.getScenes().Find(x => x.getCode() == "M");
        }
        else if (Input.GetKeyDown(KeyCode.Keypad7) || Input.GetKeyDown(KeyCode.Alpha7))
        {
            currentScene = wedding.getScenes().Find(x => x.getCode() == "S");
        }
        else if (Input.GetKeyDown(KeyCode.Keypad8) || Input.GetKeyDown(KeyCode.Alpha8))
        {
            currentScene = wedding.getScenes().Find(x => x.getCode() == "DJ");
        }
    }
コード例 #8
0
    void dj1()
    {
        desc.text = PrintText.printText(currentScene);

        if (Input.GetKeyDown(KeyCode.Keypad1) || Input.GetKeyDown(KeyCode.Alpha1))
        {
            audioSource.Play();
            currentScene = wedding.getScenes().Find(x => x.getCode() == "DJ1");
            fade.canvasRenderer.SetAlpha(1.0f);
            fade.CrossFadeAlpha(0f, 2f, true);
        }
        else if (Input.GetKeyDown(KeyCode.Keypad2) || Input.GetKeyDown(KeyCode.Alpha2))
        {
            currentScene = wedding.getScenes().Find(x => x.getCode() == "DJ2");
        }
        else if (Input.GetKeyDown(KeyCode.Keypad3) || Input.GetKeyDown(KeyCode.Alpha3))
        {
            currentScene = wedding.getScenes().Find(x => x.getCode() == "DJ3");
        }
        else if (Input.GetKeyDown(KeyCode.Keypad4) || Input.GetKeyDown(KeyCode.Alpha4))
        {
            currentScene = wedding.getScenes().Find(x => x.getCode() == "DJ4");
        }
        else if (Input.GetKeyDown(KeyCode.Keypad5) || Input.GetKeyDown(KeyCode.Alpha5))
        {
            currentScene = wedding.getScenes().Find(x => x.getCode() == "D");
        }
        else if (Input.GetKeyDown(KeyCode.C))
        {
            map.SetActive(true);
        }
        else if (Input.GetKeyUp(KeyCode.C))
        {
            map.SetActive(false);
        }
    }