示例#1
0
文件: Core.cs 项目: FamSlayer/HTTYR
    // Update is called once per frame
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.Space))
        {
            if (!mm)
            {
                mm = FindObjectOfType <MouseMove>();
            }
            if (mm.can_be_shocked())
            {
                //print("angle: " + starting_dial_rotation);
                if (starting_dial_rotation < 90.0f)
                {
                    Sound.global.PlayZap();
                    DialogueAudio.global.PlaySqueak();
                }

                mm.ElectricShockTherapy();
            }
        }
    }