增加steam
This commit is contained in:
@@ -274,6 +274,22 @@ namespace TcgEngine.UI
|
||||
{
|
||||
SettingsPanel.Get().Show();
|
||||
}
|
||||
|
||||
public void OnClickRecharge()
|
||||
{
|
||||
#if STEAMWORKS_ENABLED
|
||||
if (SteamCurrencyManager.instance != null && SteamCurrencyManager.instance.IsInitialized())
|
||||
{
|
||||
SteamCurrencyManager.instance.PurchaseGoldPackage(100, 99);
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogError("Steam currency system not initialized");
|
||||
}
|
||||
#else
|
||||
Debug.LogWarning("Steamworks not enabled");
|
||||
#endif
|
||||
}
|
||||
|
||||
public void FadeToScene(string scene)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user