디스코드 적용 등
This commit is contained in:
parent
2911342b51
commit
322871e9bd
Binary file not shown.
|
|
@ -88,7 +88,7 @@ public static class AutoBuild
|
|||
|
||||
EditorUserBuildSettings.buildAppBundle = false;
|
||||
PlayerSettings.Android.splitApplicationBinary = false;
|
||||
BuildStart("AndroidData/GoStop_Test_" + Application.version + "_(" + PlayerSettings.Android.bundleVersionCode + ").apk", BuildTarget.Android);
|
||||
BuildStart("AndroidData/GoStop_OneStore_Test_" + Application.version + "_(" + PlayerSettings.Android.bundleVersionCode + ").apk", BuildTarget.Android);
|
||||
}
|
||||
[MenuItem("AutoBuild/Build Live AAB")]
|
||||
static void Build_AAB()
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 9371a8d163a58dd4792c935d0cbfd834
|
||||
guid: cdb48b1b2e2470940b78d69925dae39f
|
||||
labels:
|
||||
- gvh
|
||||
- gvh_version-9.5.0
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
19
|
||||
20
|
||||
|
|
@ -6319,6 +6319,7 @@ GameObject:
|
|||
m_Component:
|
||||
- component: {fileID: 1682362056}
|
||||
- component: {fileID: 1682362055}
|
||||
- component: {fileID: 1682362057}
|
||||
m_Layer: 0
|
||||
m_Name: NeedAsset
|
||||
m_TagString: Untagged
|
||||
|
|
@ -6354,6 +6355,19 @@ Transform:
|
|||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &1682362057
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1682362054}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 1c483e88f61349247bdd57107feab631, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
webhookUrl: https://discord.com/api/webhooks/1458685956029939905/mjzyM7JuC7KWIjR4INNpGNCUK2EKanBace1nuwd114E5VIicTvrB3IKHSuI22ID0AtlP
|
||||
--- !u!1 &1690578740
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
|
|||
|
|
@ -0,0 +1,39 @@
|
|||
using UnityEngine;
|
||||
using UnityEngine.Networking;
|
||||
using System.Collections;
|
||||
|
||||
public class DiscordWebhookSender : MonoBehaviour
|
||||
{
|
||||
public static DiscordWebhookSender Instance;
|
||||
private void Awake()
|
||||
{
|
||||
Instance = this;
|
||||
}
|
||||
|
||||
[SerializeField] private string webhookUrl;
|
||||
|
||||
public void Send_Message(string message)
|
||||
{
|
||||
StartCoroutine(SendCoroutine(message));
|
||||
}
|
||||
|
||||
IEnumerator SendCoroutine(string message)
|
||||
{
|
||||
string json = "{\"content\":\"" + message + "\"}";
|
||||
//Debug.Log("DiscordWebhookSender : " + json);
|
||||
|
||||
using (UnityWebRequest request = new UnityWebRequest(webhookUrl, "POST"))
|
||||
{
|
||||
byte[] bodyRaw = System.Text.Encoding.UTF8.GetBytes(json);
|
||||
request.uploadHandler = new UploadHandlerRaw(bodyRaw);
|
||||
request.downloadHandler = new DownloadHandlerBuffer();
|
||||
request.SetRequestHeader("Content-Type", "application/json");
|
||||
|
||||
yield return request.SendWebRequest();
|
||||
|
||||
//Debug.Log("DiscordWebhookSender Result : " + request.result);
|
||||
if (request.result != UnityWebRequest.Result.Success)
|
||||
Debug.LogError("Discord Error: " + request.error);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 1c483e88f61349247bdd57107feab631
|
||||
|
|
@ -246,8 +246,8 @@ public class IAPManager : MonoBehaviour, IDetailedStoreListener
|
|||
GameManager.DB.AddTotalCashPerMonth(Get_Price(id));
|
||||
FireBaseMgr.Ins.LogPurchase(id, Get_Price(id), "KRW");
|
||||
break;
|
||||
case "com.fgb.cash1800":
|
||||
GameManager.DB.AddKey(1800, this.name);
|
||||
case "com.fgb.cash2000":
|
||||
GameManager.DB.AddKey(2000, this.name);
|
||||
GameManager.DB.AddTotalCashPerMonth(Get_Price(id));
|
||||
FireBaseMgr.Ins.LogPurchase(id, Get_Price(id), "KRW");
|
||||
break;
|
||||
|
|
@ -304,6 +304,9 @@ public class IAPManager : MonoBehaviour, IDetailedStoreListener
|
|||
Debug.Log("OnConsumeSucceeded " + purchase.ProductId);
|
||||
GameManager.IAP.AddProductItem(purchase.ProductId);
|
||||
GameManager.UI.ShowNStackPopup(EPopupType.SuccessIAPPopup);
|
||||
|
||||
var pinfo = Get_ProductDetail(purchase.ProductId);
|
||||
DiscordWebhookSender.Instance.Send_Message($"[OneStore]{Application.productName}, {pinfo.title} / {pinfo.price}원");
|
||||
}
|
||||
|
||||
public void OnManageRecurringProduct(IapResult iapResult, PurchaseData purchase, RecurringAction action)
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ public class StorePanel : MonoBehaviour
|
|||
list_item.Add(new ProductData("cash_heart", EProductType.Gold, "다이아 100개", "하트로 다이아 구매", 10, sprites[1], EProductReward.Key, 100));
|
||||
|
||||
list_item.Add(new ProductData("com.fgb.cash500", EProductType.IAP, "다이아 500", "보너스 없음", 1100, sprites[5], EProductReward.Key, 500));
|
||||
list_item.Add(new ProductData("com.fgb.cash1800", EProductType.IAP, "다이아 1800", "16% 보너스 지급", 3300, sprites[6], EProductReward.Key, 1800));
|
||||
list_item.Add(new ProductData("com.fgb.cash2000", EProductType.IAP, "다이아 2000", "16% 보너스 지급", 3300, sprites[6], EProductReward.Key, 2000));
|
||||
list_item.Add(new ProductData("com.fgb.cash7500", EProductType.IAP, "다이아 7500", "33% 보너스 지급", 11000, sprites[7], EProductReward.Key, 7500));
|
||||
list_item.Add(new ProductData("com.fgb.heart20", EProductType.IAP, "하트 20개", "보너스 없음", 1100, sprites[9], EProductReward.Heart, 20));
|
||||
list_item.Add(new ProductData("com.fgb.heart150", EProductType.IAP, "하트 150개", "6.7% 보너스 지급", 7700, sprites[10], EProductReward.Heart, 150));
|
||||
|
|
|
|||
|
|
@ -141,7 +141,7 @@ PlayerSettings:
|
|||
loadStoreDebugModeEnabled: 0
|
||||
visionOSBundleVersion: 1.0
|
||||
tvOSBundleVersion: 1.0
|
||||
bundleVersion: 9.9.9
|
||||
bundleVersion: 1.0.2
|
||||
preloadedAssets: []
|
||||
metroInputSource: 0
|
||||
wsaTransparentSwapchain: 0
|
||||
|
|
@ -175,7 +175,7 @@ PlayerSettings:
|
|||
iPhone: 0
|
||||
tvOS: 0
|
||||
overrideDefaultApplicationIdentifier: 1
|
||||
AndroidBundleVersionCode: 19
|
||||
AndroidBundleVersionCode: 20
|
||||
AndroidMinSdkVersion: 24
|
||||
AndroidTargetSdkVersion: 35
|
||||
AndroidPreferredInstallLocation: 1
|
||||
|
|
@ -269,7 +269,7 @@ PlayerSettings:
|
|||
AndroidTargetArchitectures: 3
|
||||
AndroidSplashScreenScale: 0
|
||||
androidSplashScreen: {fileID: 0}
|
||||
AndroidKeystoreName: '{inproject}: AndroidData/RandomGFGoStop.keystore'
|
||||
AndroidKeystoreName: '{inproject}: AndroidData/RandomGFGoStop_One.keystore'
|
||||
AndroidKeyaliasName: fgb
|
||||
AndroidEnableArmv9SecurityFeatures: 0
|
||||
AndroidEnableArm64MTE: 0
|
||||
|
|
|
|||
Loading…
Reference in New Issue