Move third party assets to ThirdParty folder
This commit is contained in:
41
Assets/ThirdParty/UltimateXR/Runtime/Scripts/Locomotion/UxrTeleportLocomotion.StateSave.cs
vendored
Normal file
41
Assets/ThirdParty/UltimateXR/Runtime/Scripts/Locomotion/UxrTeleportLocomotion.StateSave.cs
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
// --------------------------------------------------------------------------------------------------------------------
|
||||
// <copyright file="UxrTeleportLocomotion.StateSave.cs" company="VRMADA">
|
||||
// Copyright (c) VRMADA, All rights reserved.
|
||||
// </copyright>
|
||||
// --------------------------------------------------------------------------------------------------------------------
|
||||
using UltimateXR.Core.StateSave;
|
||||
|
||||
namespace UltimateXR.Locomotion
|
||||
{
|
||||
public partial class UxrTeleportLocomotion
|
||||
{
|
||||
#region Protected Overrides UxrComponent
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void SerializeState(bool isReading, int stateSerializationVersion, UxrStateSaveLevel level, UxrStateSaveOptions options)
|
||||
{
|
||||
base.SerializeState(isReading, stateSerializationVersion, level, options);
|
||||
|
||||
// Teleportation logic is already handled through events, we don't serialize parameters in incremental changes
|
||||
|
||||
if (level > UxrStateSaveLevel.ChangesSincePreviousSave)
|
||||
{
|
||||
SerializeStateValue(level, options, nameof(_previousFrameHadArc), ref _previousFrameHadArc);
|
||||
SerializeStateValue(level, options, nameof(_arcCancelled), ref _arcCancelled);
|
||||
SerializeStateValue(level, options, nameof(_arcCancelledByAngle), ref _arcCancelledByAngle);
|
||||
|
||||
SerializeStateValue(level, options, nameof(_lastSyncIsArcEnabled), ref _lastSyncIsArcEnabled);
|
||||
SerializeStateValue(level, options, nameof(_lastSyncIsTargetEnabled), ref _lastSyncIsTargetEnabled);
|
||||
SerializeStateValue(level, options, nameof(_lastSyncIsValidTeleport), ref _lastSyncIsValidTeleport);
|
||||
SerializeStateValue(level, options, nameof(_lastSyncTargetArrowLocalRot), ref _lastSyncTargetArrowLocalRot);
|
||||
|
||||
if (isReading)
|
||||
{
|
||||
EnableArc(_lastSyncIsArcEnabled, _lastSyncIsValidTeleport);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user