123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- import { _decorator, Component, Node, Vec3, Camera, v3 } from 'cc';
- const { ccclass, property } = _decorator;
- @ccclass('TestJump')
- export class TestJump extends Component {
-
-
-
-
-
- @property({type: Node})
- public testNode: Node;
- start () {
- this.onButtonClicked()
-
- }
-
-
-
- public onButtonClicked() {
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- this.testNode.qtJumpPosition(v3(300, 0, 0), 100, 1, 1, {
- onStart: ()=> {
- console.log('begin');
- },
- onComplete: ()=> {
- console.log('end');
- }
- }).start()
-
-
- }
- }
|