Perform statemachine tomfoolery

This commit is contained in:
RedBigz 2024-06-08 21:58:37 +10:00
parent e30168b54b
commit 05e2ceae38

View File

@ -74,7 +74,10 @@ class ReplayPatch
uploader.Upload(video, views, comments, () =>
{
UploadingState.SetActive(false);
Util.FindObject(Util.FindObject(__instance.m_videoPlayer.transform.parent.parent.parent.parent.parent.gameObject, "SaveVideoToDesktopInteractable"), "CloseInt").GetComponent<CloseVideoInteractable>().Interact(null);
// Util.FindObject(Util.FindObject(__instance.m_videoPlayer.transform.parent.parent.parent.parent.parent.gameObject, "SaveVideoToDesktopInteractable"), "CloseInt").GetComponent<CloseVideoInteractable>().Interact(null);
UploadVideoStationStateMachine stateMachine = new Traverse(GameObject.Find("/Tools/UploadMachine2").GetComponent<UploadVideoStation>()).Field("m_stateMachine").GetValue() as UploadVideoStationStateMachine;
stateMachine.SwitchState<UploadVideoState>();
});
return false;