mirror of
https://github.com/wyb10a10/cocos_creator_framework.git
synced 2026-06-20 15:06:02 +08:00
调整测试场景
This commit is contained in:
16
assets/Script/example/sync/SyncCube.ts
Normal file
16
assets/Script/example/sync/SyncCube.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { Component, Label, _decorator, view, director, Node, RichText } from "cc";
|
||||
import { replicated } from "../../sync/SyncUtil";
|
||||
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@ccclass
|
||||
export default class SyncCube extends Component {
|
||||
|
||||
@replicated()
|
||||
posX = 0;
|
||||
|
||||
onLoad() {
|
||||
}
|
||||
|
||||
// update (dt) {}
|
||||
}
|
||||
1
assets/Script/example/sync/SyncCube.ts.meta
Normal file
1
assets/Script/example/sync/SyncCube.ts.meta
Normal file
@@ -0,0 +1 @@
|
||||
{"ver":"4.0.22","importer":"typescript","imported":true,"uuid":"38e435f1-2a76-452d-b288-edd2685f4706","files":[],"subMetas":{},"userData":{"simulateGlobals":[]}}
|
||||
Reference in New Issue
Block a user