コード例 #1
0
        protected virtual void SaveReplayEntityState(int timePos)
        {
            this.mCacheState.ResetState();
            int    saveType      = this.GetChangePropertiesType();
            string saveStateData = TinyReplayObjectState.SaveCurStateProperties(this.entityIndex,
                                                                                timePos,
                                                                                mTrs,
                                                                                null,
                                                                                saveType);

            if (saveType != 0)
            {
                TinyReplayRecordController.instance.SaveDataToLocalFile(saveStateData);
            }
        }
コード例 #2
0
        protected override void SaveReplayEntityState(int timePos)
        {
            this.mCacheState.ResetState();
            int saveType = this.GetChangePropertiesType();

            if (!this.mTexture.color.Equals(this.mCacheColor))
            {
                this.mCacheColor = this.mTexture.color;
                saveType        |= (1 << (int)SaveTargetPropertiesType.Color);
            }
            string saveStateData = TinyReplayObjectState.SaveCurStateProperties(this.entityIndex,
                                                                                timePos,
                                                                                mTrs,
                                                                                this.mTexture,
                                                                                saveType);

            if (saveType != 0)
            {
                TinyReplayRecordController.instance.SaveDataToLocalFile(saveStateData);
            }
        }