Add back Discord RPC
This commit is contained in:
@@ -40,6 +40,8 @@ public class PlayMenu : MonoBehaviour
|
||||
{
|
||||
selectionMenu.SetActive(false);
|
||||
customMenu.SetActive(true);
|
||||
if (DiscordRPCHandler.Instance != null)
|
||||
DiscordRPCHandler.Instance.UpdateRPC("Customizing to play the custom mode", "");
|
||||
});
|
||||
customBackButton.onClick.AddListener(() =>
|
||||
{
|
||||
@@ -55,6 +57,8 @@ public class PlayMenu : MonoBehaviour
|
||||
antiBerryChance.text = defaultAntiBerryChance.ToString();
|
||||
nothingBerryChance.text = defaultNothingBerryChance.ToString();
|
||||
ValidateTotal();
|
||||
if (DiscordRPCHandler.Instance != null)
|
||||
DiscordRPCHandler.Instance.UpdateRPC("Picking what mode they want to play", "");
|
||||
});
|
||||
customNormalizeButton.onClick.AddListener(() =>
|
||||
{
|
||||
@@ -189,6 +193,12 @@ public class PlayMenu : MonoBehaviour
|
||||
nothingBerryChance.onDeselect.AddListener((value) => OnDeselect(value, nothingBerryChance));
|
||||
}
|
||||
|
||||
void Start()
|
||||
{
|
||||
if (DiscordRPCHandler.Instance != null)
|
||||
DiscordRPCHandler.Instance.UpdateRPC("Picking what mode they want to play", "");
|
||||
}
|
||||
|
||||
void ValidateTotal()
|
||||
{
|
||||
customBackButton.interactable = false;
|
||||
|
||||
Reference in New Issue
Block a user