Commit 4ff090ee authored by haiyoucuv's avatar haiyoucuv

init

parent 8fc77e6c
This diff is collapsed.
This diff is collapsed.
{ {
"ver": "1.0.0", "ver": "1.2.0",
"importer": "*", "importer": "directory",
"imported": true, "imported": true,
"uuid": "2c679b37-ade6-41a4-93ca-389b32f370ee", "uuid": "8e78d0df-74c5-4e13-9c82-4d60d26a8bb6",
"files": [ "files": [],
".json",
".svga"
],
"subMetas": {}, "subMetas": {},
"userData": {} "userData": {}
} }
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "081e6f77-5816-4ab7-be1e-cc9917759e54",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "081e6f77-5816-4ab7-be1e-cc9917759e54@6c48a",
"displayName": "无尽模式",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "081e6f77-5816-4ab7-be1e-cc9917759e54",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "081e6f77-5816-4ab7-be1e-cc9917759e54@f9941",
"displayName": "无尽模式",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1620,
"height": 450,
"rawWidth": 1620,
"rawHeight": 450,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-810,
-225,
0,
810,
-225,
0,
-810,
225,
0,
810,
225,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
450,
1620,
450,
0,
0,
1620,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-810,
-225,
0
],
"maxPos": [
810,
225,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "081e6f77-5816-4ab7-be1e-cc9917759e54@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "081e6f77-5816-4ab7-be1e-cc9917759e54@6c48a"
}
}
{
"ver": "1.0.0",
"importer": "audio-clip",
"imported": true,
"uuid": "d1a1ac8e-2bbb-48be-824d-a4f39e784772",
"files": [
".json",
".mp3"
],
"subMetas": {},
"userData": {
"downloadMode": 0
}
}
...@@ -29,7 +29,6 @@ export class PreCd extends Component { ...@@ -29,7 +29,6 @@ export class PreCd extends Component {
const callBack = () => { const callBack = () => {
this.animation.off(Animation.EventType.FINISHED, callBack); this.animation.off(Animation.EventType.FINISHED, callBack);
this.node.active = false; this.node.active = false;
console.log(12312);
resolve(); resolve();
}; };
this.animation.once(Animation.EventType.FINISHED, callBack); this.animation.once(Animation.EventType.FINISHED, callBack);
...@@ -38,4 +37,3 @@ export class PreCd extends Component { ...@@ -38,4 +37,3 @@ export class PreCd extends Component {
} }
import { _decorator, Component, Graphics, Label, math, misc, Node, tween } from "cc"; import { _decorator, Component, Graphics, Label, misc, Node, tween } from "cc";
const { ccclass, property, executeInEditMode } = _decorator; const { ccclass, property, executeInEditMode } = _decorator;
...@@ -6,12 +6,27 @@ const { ccclass, property, executeInEditMode } = _decorator; ...@@ -6,12 +6,27 @@ const { ccclass, property, executeInEditMode } = _decorator;
@executeInEditMode() @executeInEditMode()
export class Target extends Component { export class Target extends Component {
static _ins: Target = null;
static get ins() {
return this._ins;
}
@property(Graphics) graphics: Graphics = null; @property(Graphics) graphics: Graphics = null;
@property(Label) cdTxt: Label = null; @property(Label) cdTxt: Label = null;
@property(Label) goalTxt: Label = null; @property(Label) goalTxt: Label = null;
@property(Node) banner: Node = null;
protected onLoad() {
Target._ins = this;
}
onDestroy() {
Target._ins = null;
}
start() { start() {
this.startCd(10); this.startCd(10);
} }
...@@ -36,7 +51,6 @@ export class Target extends Component { ...@@ -36,7 +51,6 @@ export class Target extends Component {
.start(); .start();
} }
drawProcess = (() => { drawProcess = (() => {
const phases = [ const phases = [
51, 51,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment