Skip to content

Commit

Permalink
don't span goal anim when in multiplayer or live
Browse files Browse the repository at this point in the history
  • Loading branch information
NtsFranz committed Sep 21, 2022
1 parent d299e3d commit c6cda5c
Show file tree
Hide file tree
Showing 10 changed files with 1,578 additions and 826 deletions.
427 changes: 244 additions & 183 deletions Demo Viewer/Assembly-CSharp-Editor-firstpass.csproj

Large diffs are not rendered by default.

427 changes: 244 additions & 183 deletions Demo Viewer/Assembly-CSharp-Editor.csproj

Large diffs are not rendered by default.

413 changes: 236 additions & 177 deletions Demo Viewer/Assembly-CSharp-firstpass.csproj

Large diffs are not rendered by default.

413 changes: 236 additions & 177 deletions Demo Viewer/Assembly-CSharp.csproj

Large diffs are not rendered by default.

102 changes: 0 additions & 102 deletions Demo Viewer/Assets/ARENA.fbx.meta

This file was deleted.

2 changes: 1 addition & 1 deletion Demo Viewer/Assets/Scripts/DemoStart.cs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ private void Update()
Frame nearestFrame = playhead.GetNearestFrame();
Frame previousFrame = playhead.GetPreviousFrame();

if (viewingFrame != null && previousFrame != null)
if (viewingFrame != null && previousFrame != null && viewingFrame!=previousFrame)
{
// Arena-only stuff
if (viewingFrame.map_name == "mpl_arena_a")
Expand Down
5 changes: 5 additions & 0 deletions Demo Viewer/Assets/Scripts/Playhead.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ public Frame GetFrame()

public Frame GetNearestFrame()
{
if (LiveFrameProvider.isLive)
{
return LiveFrameProvider.frame;
}

return replay.GetFrame(Mathf.Clamp(currentFrameIndex, 0, replay.FrameCount - 1));
}

Expand Down
604 changes: 604 additions & 0 deletions Demo Viewer/Demo Viewer.sln

Large diffs are not rendered by default.

9 changes: 7 additions & 2 deletions Demo Viewer/ProjectSettings/ProjectSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ PlayerSettings:
16:10: 1
16:9: 1
Others: 1
bundleVersion: 1.11.1
bundleVersion: 1.11.2
preloadedAssets:
- {fileID: 0}
- {fileID: 0}
Expand All @@ -146,6 +146,11 @@ PlayerSettings:
- {fileID: 0}
- {fileID: 0}
- {fileID: 0}
- {fileID: 0}
- {fileID: 0}
- {fileID: 0}
- {fileID: 0}
- {fileID: 0}
- {fileID: -4611831833606109332, guid: c3d75b5dcd7490f42bacf904ce37e92b, type: 2}
- {fileID: -8922607054882705910, guid: 4e6c4da5f47e4e243afe1acf2795197d, type: 2}
- {fileID: 0}
Expand All @@ -167,7 +172,7 @@ PlayerSettings:
androidMaxAspectRatio: 2.1
applicationIdentifier:
Android: com.EchoVRCommunity.ReplayViewer
Standalone: com.EchoVRCommunity.ReplayViewer
Standalone: com.EchoVR-Community.Replay-Viewer
buildNumber:
Standalone: 0
iPhone: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ MonoBehaviour:
m_Script: {fileID: 0}
m_Name:
m_EditorClassIdentifier: Unity.Rider.Editor:Packages.Rider.Editor:RiderScriptEditorPersistedState
lastWriteTicks: -8585391671010662687
lastWriteTicks: -8585378158911062036

0 comments on commit c6cda5c

Please sign in to comment.