Пример #1
0
        private void ActionMenuState()
        {
            DiseaseManager diseaseMgr = DiseaseManager.Instance;

            if (Controller.GetPressDown(SteamVR_Controller.ButtonMask.Touchpad))
            {
                Vector2 touchpad = Controller.GetAxis();

                if (touchpad.y > 0.5f)
                {
                    diseaseMgr.ChooseDisease(TouchPad.Up);
                }
                else if (touchpad.y < -0.5f)
                {
                    diseaseMgr.ChooseDisease(TouchPad.Down);
                }
                else if (touchpad.x > 0.5f)
                {
                    diseaseMgr.ChooseDisease(TouchPad.Right);
                }
                else if (touchpad.x < -0.5f)
                {
                    diseaseMgr.ChooseDisease(TouchPad.Left);
                }
            }

            if (triggerState == Trigger.PressDown)
            {
                diseaseMgr.ChoiceDisease();
            }
        }
Пример #2
0
        private void Awake()
        {
            _diseaseManager = GetComponent <DiseaseManager>();

            // 질병관리자의 isAutomatic변수를 true로 변경
            _diseaseManager.isAutomatic = true;

            _stateShowObj.SetActive(true);
        }