Ejemplo n.º 1
0
    void OnTriggerStay(Collider other)
    {
        if (other.CompareTag("Player"))
        {
            if (Input.GetButton("PickUpObject") && spoon.increasePower())
            {
                this.transform.Rotate(0.0f, -rotationPitch, 0.0f);
            }

            /*else if (Input.GetKey(KeyCode.Keypad6) && spoon.decreasePower())
             * {
             *      this.transform.Rotate(0.0f, rotationPitch, 0.0f);
             * }*/
        }
    }