Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Merge pull request #141 from patchkit-net/dev/v3.17.x.x
Merge 3.17.1.0 to master
- Loading branch information
Showing
10 changed files
with
6,775 additions
and
11 deletions.
There are no files selected for viewing
6,656 changes: 6,656 additions & 0 deletions
6,656
Assets/PatchKit Patcher/Patcher_Multiple_Start_Buttons.unity
Large diffs are not rendered by default.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
Assets/PatchKit Patcher/Patcher_Multiple_Start_Buttons.unity.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using UnityEngine; | ||
using UnityEngine.UI; | ||
using UniRx; | ||
|
||
namespace PatchKit.Unity.Patcher.UI | ||
{ | ||
public class StartAppButton : MonoBehaviour | ||
{ | ||
public Button Button; | ||
|
||
public string StartAppCustomArgs; | ||
|
||
private void Start() | ||
{ | ||
Button.onClick.AddListener(() => | ||
{ | ||
Patcher.Instance.StartAppCustomArgs = StartAppCustomArgs; | ||
Patcher.Instance.SetUserDecision(Patcher.UserDecision.StartApp); | ||
}); | ||
|
||
Patcher.Instance.CanStartApp.ObserveOnMainThread().Subscribe(canStartApp => | ||
{ | ||
Button.interactable = canStartApp; | ||
}).AddTo(this); | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters