Remove unused traverses
This commit is contained in:
parent
0cb2ee2c56
commit
89dfc14d4e
|
@ -57,9 +57,6 @@ class ReplayPatch
|
||||||
}
|
}
|
||||||
|
|
||||||
IPlayableVideo video = new Traverse(__instance).Field("m_replayVideo").GetValue() as IPlayableVideo;
|
IPlayableVideo video = new Traverse(__instance).Field("m_replayVideo").GetValue() as IPlayableVideo;
|
||||||
int views = new Traverse(__instance).Field("m_replayViews").GetValue<int>();
|
|
||||||
CommentUI[] comments = new Traverse(__instance).Field("m_replayComments").GetValue() as CommentUI[];
|
|
||||||
|
|
||||||
GameObject States = __instance.m_videoPlayer.transform.parent.parent.parent.gameObject;
|
GameObject States = __instance.m_videoPlayer.transform.parent.parent.parent.gameObject;
|
||||||
|
|
||||||
GameObject ShowVideoState = Util.FindObject(States, "ShowVideoState");
|
GameObject ShowVideoState = Util.FindObject(States, "ShowVideoState");
|
||||||
|
@ -71,7 +68,7 @@ class ReplayPatch
|
||||||
|
|
||||||
SpookedUploader uploader = new();
|
SpookedUploader uploader = new();
|
||||||
|
|
||||||
uploader.Upload(video, views, comments, () =>
|
uploader.Upload(video, () =>
|
||||||
{
|
{
|
||||||
UploadingState.SetActive(false);
|
UploadingState.SetActive(false);
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,7 @@ class SpookedUploader
|
||||||
}
|
}
|
||||||
|
|
||||||
WebSocket ws;
|
WebSocket ws;
|
||||||
public void Upload(IPlayableVideo cameraRecording, int views, CommentUI[] comments, Action onUpload)
|
public void Upload(IPlayableVideo cameraRecording, Action onUpload)
|
||||||
{
|
{
|
||||||
if (cameraRecording.TryGetVideoPath(out string path))
|
if (cameraRecording.TryGetVideoPath(out string path))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user