const {ccclass, property} = cc._decorator;

@ccclass
export default class Saw extends cc.Component {

    @property()
    isStart: boolean = true;

    @property
    rotateSpeed: number = 600; 

    update(dt: number) {
        if (this.isStart) {
            // const rotationDelta = this.rotateSpeed * dt;
            // const newRotation = this.node.rotation + rotationDelta;
    
            // this.node.rotation = newRotation;  
            // const rotationDelta = this.rotateSpeed * dt;
            // const newRotation = this.node.rotation + rotationDelta;
            // if (newRotation <= this.minRotation) {
            //     this.node.rotation = this.minRotation;
            // } else {
            //     this.node.rotation = newRotation;
            // }

        }
    }
}
