23 lines
521 B
Plaintext
23 lines
521 B
Plaintext
import { _decorator, Component, Node } from 'cc';
|
|
const { ccclass, property } = _decorator;
|
|
|
|
@ccclass('<%UnderscoreCaseClassName%>')
|
|
export class <%UnderscoreCaseClassName%> extends Component {
|
|
|
|
// class member could be defined like this.
|
|
dummy = '';
|
|
|
|
// Use 'property' decorator if your want the member to be serializable.
|
|
@property
|
|
serializableDummy = 0;
|
|
|
|
start() {
|
|
// Your initialization goes here.
|
|
}
|
|
|
|
update(deltaTime) {
|
|
// Your update function goes here.
|
|
}
|
|
|
|
}
|