Exemple #1
0
 // Update is called once per frame
 void Update()
 {
     if (InputManager_JHW.AButtonDown())
     {
         if (choice)
         {
             Debug.Log(Singletone.Instance.stage + 3);
             sceneChange.sceneChange(Singletone.Instance.stage + 3);
         }
         else
         {
             //그냥 다시 원래 상태
             transform.parent.GetComponent <SelectMenu_Ready>().confirm = false;
             choice = false;
             gameObject.SetActive(false);
         }
     }
     if (InputManager_JHW.BButtonDown())
     {
         //그냥 원래 상태
         transform.parent.GetComponent <SelectMenu_Ready>().confirm = false;
         choice = false;
         gameObject.SetActive(false);
     }
 }
 private void Update()
 {
     if (InputManager_JHW.AButtonDown())
     {
         source.Play();
         if (index == 0)
         {
             confirm = true;
             newConfirm.SetActive(true);
             //SceneManager.LoadScene("Stage0");
         }
         if (index == 1)
         {
             Load.SetActive(true);
             this.gameObject.SetActive(false);
         }
         if (index == 2)
         {
         }            //멀티플레이
         if (index == 3)
         {
             Option.SetActive(true);
             this.gameObject.SetActive(false);
         }
     }
 }
Exemple #3
0
 // Update is called once per frame
 void Update()
 {
     if (InputManager_JHW.AButtonDown() || Confirm.color.g == 0 || Input.GetKeyDown(KeyCode.K))
     {
         if (characterIndex < DialogueStrings[stringIndex].Length)
         {
             characterIndex = DialogueStrings[stringIndex].Length;
         }
     }
 }
 private void Update()
 {
     if (InputManager_JHW.AButtonDown())
     {
         source.clip = clips[0];
         source.Play();
         if (index == 0)
         {
             confirm = true;
             Confirm.SetActive(true);
         }
         if (index == 1)
         {
             confirm = true;
             Confirm.SetActive(true);
         }
         if (index == 2)
         {
             confirm = true;
             Confirm.SetActive(true);
         }
         if (index == 3)
         {
             this.gameObject.SetActive(false);
             Main.SetActive(true);
         }
     }
     if (InputManager_JHW.BButtonDown())
     {
         source.clip = clips[1];
         source.Play();
         if (index == 0)
         {
             index = 3;
         }
         if (index == 1)
         {
             index = 3;
         }
         if (index == 2)
         {
             index = 3;
         }
         if (index == 3)
         {
             this.gameObject.SetActive(false);
             Main.SetActive(true);
         }
     }
 }
Exemple #5
0
 private void Update()
 {
     if (InputManager_JHW.AButtonDown())
     {
         source.clip = clips[0];
         source.Play();
         skillChoice(RotationSkill);
     }
     if (InputManager_JHW.BButtonDown())
     {
         source.clip = clips[1];
         source.Play();
         menu.SelectMenu = -1;
         menu.confirm    = false;
     }
 }
Exemple #6
0
    private void Update()
    {
        if (InputManager_JHW.AButtonDown())
        {
            source.clip = clips[0];
            source.Play();
            if (!confirm)
            {
                SelectMenu = index;
                confirm    = true;
                player.StartCoroutine(Viberation.ViberationCoroutine(0.2f, 0.3f, OVRInput.Controller.RTouch));
                player.StartCoroutine(Viberation.ViberationCoroutine(0.2f, 0.3f, OVRInput.Controller.LTouch));
                ui_arr[SelectMenu].GetComponent <Image>().color = new Color(1, 0, 1);
                Menus[SelectMenu].transform.Translate(0, 0, -10);
                Menus[SelectMenu].transform.LookAt(Camera.main.transform);
                Menus[SelectMenu].transform.Rotate(0, 180, 0);
            }
        }
        if (InputManager_JHW.BButtonDown())
        {
            source.clip = clips[1];
            source.Play();
            if (confirm && SelectMenu >= 0)
            {
                Menus[SelectMenu].transform.rotation = Quaternion.identity;
                Menus[SelectMenu].transform.Translate(0, 0, 10);

                ui_arr[SelectMenu].GetComponent <Image>().color = new Color(1, 1, 1);
                SelectMenu = -1;
                confirm    = false;
                player.StartCoroutine(Viberation.ViberationCoroutine(0.1f, 0.1f, OVRInput.Controller.RTouch));
                player.StartCoroutine(Viberation.ViberationCoroutine(0.1f, 0.1f, OVRInput.Controller.LTouch));
            }
        }
        if (InputManager_JHW.RTriggerOn() && InputManager_JHW.LTriggerOn())
        {
            //준비 완료되었냐고 물어보는 거 확인후!!
            source.clip = clips[0];
            source.Play();
            confirm = true;
            GameStart.gameObject.SetActive(true);
            //
        }
    }
 private void Update()
 {
     if (InputManager_JHW.AButtonDown())
     {
         if (index == 1)
         {            //파일입출력으로 파일 읽어오는 코드가 필요
             source.clip = clips[0];
             source.Play();
             sceneChange.sceneChange("Ready");
         }
         if (index == 0)
         {
             source.clip = clips[1];
             source.Play();
             load.GetComponent <LoadMenu>().confirm = false;
             this.gameObject.SetActive(false);
         }
     }
 }
 private void Update()
 {
     if (InputManager_JHW.AButtonDown())
     {
         if (index == 1)
         {
             source.clip = clips[0];
             source.Play();
             Singletone.Instance.stage   = -1;
             Singletone.Instance.Myskill = new int[] { 0, -1, -1 };
             sceneChange.sceneChange("StartNew");
         }
         if (index == 0)
         {
             source.clip = clips[1];
             source.Play();
             main.GetComponent <MainMenu>().confirm = false;
             this.gameObject.SetActive(false);
         }
     }
 }
    private void Update()
    {
        //KeyBoard - Enter
        if (InputManager_JHW.AButtonDown())
        {
            source.Play();

            if (11 <= index && index <= 13)
            {
                sound = index;
                for (int i = 0; i < 3; ++i)
                {
                    Sound[i].SetActive(false);
                }
                Sound[sound - 11].SetActive(true);
            }

            if (21 <= index && index <= 23)
            {
                sound2 = index;
                for (int i = 0; i < 3; ++i)
                {
                    Sound2[i].SetActive(false);
                }
                Sound2[sound2 - 21].SetActive(true);
            }

            if (30 <= index && index <= 33)
            {
                grapic = index;
                for (int i = 0; i < 4; ++i)
                {
                    Grapic[i].SetActive(false);
                }
                Grapic[grapic - 30].SetActive(true);
            }

            if (index == 3)
            {
                index = sound;
            }
            if (index == 4)
            {
                index = sound2;
            }

            if (index == 0)
            {
                index = 3;
            }



            if (index == 1)
            {
                index = grapic;
            }

            if (index == 2)
            {
                this.gameObject.SetActive(false);
                Main.SetActive(true);
            }
        }
        else if (InputManager_JHW.BButtonDown())
        {
            source.Play();
            bool CheckB = false;
            if ((index == 0 || index == 1) &&
                CheckB == false)
            {
                index  = 2;
                CheckB = true;
            }
            if ((index == 2) &&
                CheckB == false)
            {
                index  = 0;
                CheckB = true;
            }
            if (index == 3 || index == 4)
            {
                index = 0;
            }
            if (11 <= index && index <= 13)
            {
                index = 3;
            }
            if (21 <= index && index <= 23)
            {
                index = 4;
            }
            if (30 <= index && index <= 33)
            {
                index = 1;
            }
        }
    }