12345678910111213141516171819202122 |
- 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.
- }
- }
|