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); } }
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); } }