39 lines
1.2 KiB
C#
39 lines
1.2 KiB
C#
using UnityEngine;
|
|
|
|
namespace tysdk
|
|
{
|
|
public partial class TYSdkFacade : MonoBehaviour
|
|
{
|
|
/*================================================
|
|
|
|
_____ _ _____ _
|
|
| ____|_ _____ _ __ | |_ |_ _| __ __ _ ___| | __
|
|
| _| \ \ / / _ \ '_ \| __| | || '__/ _` |/ __| |/ /
|
|
| |___ \ V / __/ | | | |_ | || | | (_| | (__| <
|
|
|_____| \_/ \___|_| |_|\__| |_||_| \__,_|\___|_|\_\
|
|
|
|
=================================================*/
|
|
|
|
public void EventTrack(int type, string name, string content)
|
|
{
|
|
#if UNITY_IOS || UNITY_ANDROID
|
|
UnityBridgeFunc.GAReportParams(type, name, content);
|
|
#endif
|
|
}
|
|
}
|
|
|
|
public enum GATrackType
|
|
{
|
|
GA_TRACK = 1, //默认类型
|
|
GA_CION = 2, //金流相关事件
|
|
GA_PAY = 3, //支付相关事件
|
|
GA_GAME = 4, //游戏行为
|
|
GA_LOGIN = 5, //登录注册相关事件
|
|
GA_PUSH = 6, //推送相关事件
|
|
GA_ADBOX = 7, //adbox相关事件
|
|
GA_PREFORMANCE = 8, //性能上报相关事件
|
|
GA_SDK = 9, //SDK相关事件
|
|
GA_ABTest = 10, //abtest相关事件
|
|
}
|
|
}
|