Beispiel #1
0
 void Sync()
 {
     ShitMan.CS_MoveSync msg = new ShitMan.CS_MoveSync();
     msg.pos = MathHelper.TransplantToMsgVector3(transform.position);
     msg.dir = MathHelper.TransplantToMsgVector3(transform.rotation.eulerAngles);
     SessionManager.instance.Send(msg);
 }
Beispiel #2
0
        void CS_MoveSyncHandle(long guid, CS_MoveSync msg)
        {
            EntryManager.Instance.MoveSync(guid, msg.pos, msg.dir);
            FrameState frameState = new FrameState(msg.pos, msg.dir);

            FrameSyncManager.Instance.FrameAdd(guid, frameState);
        }