예제 #1
0
    // Update is called once per frame
    void Update()
    {
        if ((playerManagerScript.ShowCurrentPlayerState() == Player_Manager.PlayerStatus.Vanilla) && (playerManagerScript.returnSwinging() == false))
        {
            /*foreach (Collider col in ChildColliders)
             * {
             *  col.GetComponent<Collider>().enabled = true;
             * }*/

            if (Input.GetKey("joystick button 5"))
            {
                transform.localRotation = Quaternion.Euler(rotationVector);
            }
            else
            {
                transform.localRotation = Quaternion.Euler(startingVector);
            }
        }
        else
        {
            /*foreach (Collider col in ChildColliders)
             * {
             *  col.GetComponent<Collider>().enabled = false;
             * }*/
        }
    }