init
This commit is contained in:
24
Assets/Game/Scripts/PluginScripts/AdjustManager.cs
Normal file
24
Assets/Game/Scripts/PluginScripts/AdjustManager.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using com.adjust.sdk;
|
||||
|
||||
public class AdjustManager : MonoBehaviour
|
||||
{
|
||||
public string id = "qoy21u10cvsw";
|
||||
|
||||
|
||||
public void InitAdjust()
|
||||
{
|
||||
AdjustConfig adjustConfig = new AdjustConfig(id, AdjustEnvironment.Production,true);
|
||||
adjustConfig.setLogLevel(AdjustLogLevel.Info);
|
||||
adjustConfig.setSendInBackground(true);
|
||||
new GameObject("Adjust").AddComponent<Adjust>();
|
||||
Adjust.addSessionCallbackParameter("foo", "bar");
|
||||
adjustConfig.setAttributionChangedDelegate((adjustAttribution) =>
|
||||
{
|
||||
Debug.LogFormat("Adjust Attribution Callback: ", adjustAttribution.trackerName);
|
||||
});
|
||||
Adjust.start(adjustConfig);
|
||||
}
|
||||
}
|
||||
11
Assets/Game/Scripts/PluginScripts/AdjustManager.cs.meta
Normal file
11
Assets/Game/Scripts/PluginScripts/AdjustManager.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c521e771fec00f148b01ca5cc3e0b939
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
53
Assets/Game/Scripts/PluginScripts/GAScript.cs
Normal file
53
Assets/Game/Scripts/PluginScripts/GAScript.cs
Normal file
@@ -0,0 +1,53 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
//using GameAnalyticsSDK;
|
||||
using UnityEngine.EventSystems;
|
||||
|
||||
public class GAScript : MonoBehaviour
|
||||
{
|
||||
public static GAScript Instance;
|
||||
private void Awake()
|
||||
{
|
||||
if (!Instance)
|
||||
{
|
||||
Instance = this;
|
||||
DontDestroyOnLoad(gameObject);
|
||||
}
|
||||
else
|
||||
{
|
||||
DestroyImmediate(gameObject);
|
||||
}
|
||||
|
||||
// Vibration.Init();
|
||||
|
||||
Init();
|
||||
}
|
||||
|
||||
private void Init()
|
||||
{
|
||||
// GA
|
||||
// GameAnalytics.Initialize();
|
||||
}
|
||||
|
||||
public static void LevelStart(int levelname, int levelAttempts)
|
||||
{
|
||||
// GameAnalytics.NewProgressionEvent(GAProgressionStatus.Start, levelname.ToString());
|
||||
print("Start::" + levelname);
|
||||
//FaceBookScript.instance.LevelStarted(levelname);
|
||||
}
|
||||
|
||||
public static void LevelFail(int levelName, int levelAttempts)
|
||||
{
|
||||
// GameAnalytics.NewProgressionEvent(GAProgressionStatus.Fail, levelName.ToString());
|
||||
print("Failed::" + levelName);
|
||||
// FaceBookScript.instance.LevelFailed(levelname);
|
||||
}
|
||||
|
||||
public static void LevelCompleted(int levelName, int levelAttempts)
|
||||
{
|
||||
// GameAnalytics.NewProgressionEvent(GAProgressionStatus.Complete, levelName.ToString());
|
||||
print("Completed::" + levelName);
|
||||
// FaceBookScript.instance.LevelCompleted(levelname);
|
||||
}
|
||||
}
|
||||
11
Assets/Game/Scripts/PluginScripts/GAScript.cs.meta
Normal file
11
Assets/Game/Scripts/PluginScripts/GAScript.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8c281260e5a0ad14ebb280d7a24a8d61
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
39
Assets/Game/Scripts/PluginScripts/LionStudiosManager.cs
Normal file
39
Assets/Game/Scripts/PluginScripts/LionStudiosManager.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
//using LionStudios.Suite.Analytics;
|
||||
|
||||
public class LionStudiosManager : MonoBehaviour
|
||||
{
|
||||
public static LionStudiosManager instance;
|
||||
private void Awake()
|
||||
{
|
||||
instance = this;
|
||||
}
|
||||
|
||||
//public static void LionInit() => LionAnalytics.GameStart();
|
||||
|
||||
|
||||
|
||||
public static void LevelStart(int levelNo, int attemptNum, int? score = null)
|
||||
{
|
||||
//LionAnalytics.LevelStart(levelNo, attemptNum, score);
|
||||
}
|
||||
|
||||
public static void LevelComplete(int levelNo, int attemptNum, int? score = null)
|
||||
{
|
||||
//LionAnalytics.LevelComplete(levelNo, attemptNum, score);
|
||||
}
|
||||
|
||||
public static void LevelFail(int levelNo, int attemptNum, int? score = null)
|
||||
{
|
||||
//LionAnalytics.LevelFail(levelNo, attemptNum, score);
|
||||
}
|
||||
|
||||
public static void LevelRestart(int levelNo, int attemptNum, int? score = null)
|
||||
{
|
||||
//LionAnalytics.LevelRestart(levelNo, attemptNum, score);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
11
Assets/Game/Scripts/PluginScripts/LionStudiosManager.cs.meta
Normal file
11
Assets/Game/Scripts/PluginScripts/LionStudiosManager.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 100c9fa3d346a4848bb3e2ae45df6393
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user