mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
21 lines
501 B
Plaintext
21 lines
501 B
Plaintext
import { _decorator, Component, Node } from 'cc';
|
|
const { ccclass, property } = _decorator;
|
|
|
|
@ccclass('<%Name%>')
|
|
export class <%Name%> 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.
|
|
// }
|
|
}
|