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

            mRecords.Add(data);
            return(data.Value);
        }
Esempio n. 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);
        }
Esempio n. 3
0
 public void DebugPrintTransform()
 {
     DebugLog.Log.Print("{0}{1} "
                        , gameObject.name
                        , Trfm.Convert(transform, Trfm.Type.Local).ToJson());
 }