Perform statemachine tomfoolery
This commit is contained in:
parent
e30168b54b
commit
05e2ceae38
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user