示例#1
0
        private Trfm Generate(Transform transform)
        {
            var data = new TimedTrfm().Set(Time.time, Trfm.Convert(transform, mRecordType));

            mRecords.Add(data);
            return(data.Value);
        }
示例#2
0
        private void Update()
        {
            mSync.Sync();

            var type = mIsLocal ? Trfm.Type.Local : Trfm.Type.World;
            var now  = Trfm.Convert(transform, type);

            mSync.UpdateSend(() => { return(mSync.Prev != now); }, now);
        }
示例#3
0
 public void DebugPrintTransform()
 {
     DebugLog.Log.Print("{0}{1} "
                        , gameObject.name
                        , Trfm.Convert(transform, Trfm.Type.Local).ToJson());
 }