1234567891011121314151617181920212223242526272829 |
- import { _decorator, Component, Node, Vec3, tween } from 'cc';
- const { ccclass, property } = _decorator;
- @ccclass('Start')
- export class Start extends Component {
- @property(Node)
- bar:Node=null;
- @property(Node)
- logoPic:Node=null;
- start() {
- //this.bar.setScale(2,1);
- this.Loading();
- this.Logo();
- }
- Logo(){
-
- }
- Loading(){
- tween(this.bar)
- .call(()=>{this.bar.setScale(0,1)})
- .to(2,{scale:new Vec3(2,1)})
- .call(()=>{this.bar.setScale(1.5,1)})
- .start();
- }
- update(deltaTime: number) {
- }
- }
|