mirror of
https://github.com/wyb10a10/cocos_creator_framework.git
synced 2026-06-04 08:10:36 +08:00
clear code
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { Component, Label, _decorator, view, director, Node, RichText, tween, Tween, math, randomRange, Vec3, Quat, ModelComponent, Color } from "cc";
|
||||
import { getReplicateMark, ReplicatedOption } from "../sync/ReplicateMark";
|
||||
import { applyDiff, genDiff, getReplicateObject, getReplicator, makeObjectReplicated, replicated } from "../sync/SyncUtil";
|
||||
import { getReplicator, replicated } from "../sync/SyncUtil";
|
||||
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@@ -27,8 +27,8 @@ export default class SyncExample extends Component {
|
||||
onLoad() {
|
||||
let a = new A();
|
||||
a.a = 12;
|
||||
let diff = genDiff(a, 0, 1);
|
||||
console.log(diff);
|
||||
//let diff = genDiff(a, 0, 1);
|
||||
//console.log(diff);
|
||||
|
||||
this.makeObjectReplicated()
|
||||
/*let vec = new Vec3(Vec3.ZERO);
|
||||
|
||||
Reference in New Issue
Block a user