Transform.Rotate becomes faster even with Time.deltaTime

Hi,

for my master thesis i should implement gestures from the kinect skd2 into unity and manipulate a game object with those gestures. My code is working, but when i push the play button and i do the rotate_right/rotate_left gesture, the rotation of the y axis becomes faster and faster over time.

Here is the code:

public float speed = 1f;

                            if (gesture.Name.Equals(this.rotateLeft) && result.Detected)
                            {
                                transform.Rotate(0, (-1)*speed * Time.deltaTime, 0);
                                break;
                            }
                            else if (gesture.Name.Equals(this.rotateRight) && result.Detected)
                            {
                                transform.Rotate(0, speed * Time.deltaTime, 0);
                                break;
                            }

Does anyone have an idea?

I think that because you multiply it in the if by Time.delta which cannot be negative because it’s a time value. That was my idea but don’t forget I’m a rookie. I hope that the problem.

Sorry for bad English (not native speaker)

I found the problem myself. Apparently i called the event too often or something like that. Thanks for the replies