디스코드 추가
This commit is contained in:
parent
9fd6077672
commit
56da5f6c38
|
|
@ -2861,7 +2861,7 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0}
|
||||
m_AnchorMax: {x: 0.5, y: 0}
|
||||
m_AnchoredPosition: {x: 2756, y: -25}
|
||||
m_AnchoredPosition: {x: 2756, y: -25.000015}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!61 &85415561
|
||||
|
|
@ -16389,7 +16389,7 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0}
|
||||
m_AnchorMax: {x: 0.5, y: 0}
|
||||
m_AnchoredPosition: {x: -2756, y: -25}
|
||||
m_AnchoredPosition: {x: -2756, y: -25.000015}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!61 &420248622
|
||||
|
|
@ -19712,6 +19712,7 @@ GameObject:
|
|||
- component: {fileID: 500962030}
|
||||
- component: {fileID: 500962029}
|
||||
- component: {fileID: 500962031}
|
||||
- component: {fileID: 500962032}
|
||||
m_Layer: 0
|
||||
m_Name: Infos
|
||||
m_TagString: Untagged
|
||||
|
|
@ -19871,6 +19872,19 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: 4177bc10460c0264eb933d4c43a6f313, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!114 &500962032
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 500962021}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: a6217070f548560469157a6f26c22065, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
webhookUrl: https://discord.com/api/webhooks/1458685956029939905/mjzyM7JuC7KWIjR4INNpGNCUK2EKanBace1nuwd114E5VIicTvrB3IKHSuI22ID0AtlP
|
||||
--- !u!1 &503960960
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
@ -64746,7 +64760,7 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: -55.772705}
|
||||
m_AnchoredPosition: {x: 0, y: -55.77272}
|
||||
m_SizeDelta: {x: 0, y: -111.5455}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!1 &1630921640
|
||||
|
|
|
|||
|
|
@ -0,0 +1,33 @@
|
|||
using UnityEngine;
|
||||
using UnityEngine.Networking;
|
||||
using System.Collections;
|
||||
|
||||
public class DiscordWebhookSender : MonoBehaviourSingletonTemplate<DiscordWebhookSender>
|
||||
{
|
||||
[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: a6217070f548560469157a6f26c22065
|
||||
|
|
@ -167,6 +167,10 @@ public class InappInfo : MonoBehaviourSingletonTemplate<InappInfo>
|
|||
act_success?.Invoke();
|
||||
//GameManager.IAP.AddProductItem(purchase.ProductId);
|
||||
//GameManager.UI.ShowNStackPopup(EPopupType.SuccessIAPPopup);
|
||||
|
||||
var data = table_shop.Ins.Get_Data(purchase.ProductId);
|
||||
DiscordWebhookSender.Ins.Send_Message($"[OneStore, {Application.productName}, {purchase.PackageName}]" +
|
||||
$"{purchase.ProductId} / {DSUtil.GetThousandCommaText(data.n_Price)}원");
|
||||
}
|
||||
|
||||
public void OnManageRecurringProduct(IapResult iapResult, PurchaseData purchase, RecurringAction action)
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ public static class AutoBuild
|
|||
//PlayerSettings.Android.minSdkVersion = AndroidSdkVersions.AndroidApiLevel23;
|
||||
|
||||
EditorUserBuildSettings.buildAppBundle = false;
|
||||
BuildStart("AndroidData/SheGotWet_Test_OneStore_" + Application.version + "_(" + PlayerSettings.Android.bundleVersionCode + ").apk", BuildTarget.Android);
|
||||
BuildStart("AndroidData/SheGotWet_OneStore_" + Application.version + "_(" + PlayerSettings.Android.bundleVersionCode + ").apk", BuildTarget.Android);
|
||||
EmptySymbol();
|
||||
}
|
||||
[MenuItem("AutoBuild/Build Live AAB")]
|
||||
|
|
|
|||
|
|
@ -141,7 +141,7 @@ PlayerSettings:
|
|||
loadStoreDebugModeEnabled: 0
|
||||
visionOSBundleVersion: 1.0
|
||||
tvOSBundleVersion: 1.0
|
||||
bundleVersion: 1.0.3
|
||||
bundleVersion: 1.0.4
|
||||
preloadedAssets:
|
||||
- {fileID: -944628639613478452, guid: 2bcd2660ca9b64942af0de543d8d7100, type: 3}
|
||||
metroInputSource: 0
|
||||
|
|
@ -173,7 +173,7 @@ PlayerSettings:
|
|||
iPhone: 0
|
||||
tvOS: 0
|
||||
overrideDefaultApplicationIdentifier: 1
|
||||
AndroidBundleVersionCode: 23
|
||||
AndroidBundleVersionCode: 24
|
||||
AndroidMinSdkVersion: 24
|
||||
AndroidTargetSdkVersion: 35
|
||||
AndroidPreferredInstallLocation: 1
|
||||
|
|
|
|||
Loading…
Reference in New Issue