mirror of
https://github.com/ifengzp/cocos-awesome.git
synced 2025-10-09 16:45:51 +00:00
金币落袋
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
const {ccclass, property} = cc._decorator;
|
||||
|
||||
@ccclass
|
||||
export default class Helloworld extends cc.Component {
|
||||
|
||||
@property(cc.Label)
|
||||
label: cc.Label = null;
|
||||
|
||||
@property
|
||||
text: string = 'hello';
|
||||
|
||||
start () {
|
||||
// init logic
|
||||
this.label.string = this.text;
|
||||
}
|
||||
}
|
6
assets/Script/Home.ts
Normal file
6
assets/Script/Home.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
const {ccclass, property} = cc._decorator;
|
||||
|
||||
@ccclass
|
||||
export default class Home extends cc.Component {
|
||||
|
||||
}
|
Reference in New Issue
Block a user