This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<set xmlns:android="http://schemas.android.com/apk/res/android" | |
android:shareInterpolator="false"> | |
<translate | |
android:fromXDelta="0%" android:toXDelta="0%" | |
android:fromYDelta="100%" android:toYDelta="0%" | |
android:duration="@integer/anim_duration"/> | |
</set> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
remoteConfigManager = new RemoteConfigManager(); | |
remoteConfigManager.GetInstance(); | |
remoteConfigManager.Fetch(); | |
Debug.Log($"Value: {remoteConfigManager.GetValueAsString("Key1")}"); | |
Dictionary<string, object> values = remoteConfigManager.GetMergedAll(); | |
foreach (KeyValuePair<string, object> kvp in values) | |
{ | |
Debug.Log($"[Remote Config]: key:{kvp.Key} / value:{kvp.Value}"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IAGConnectCrash agConnectCrash; | |
void Start() | |
{ | |
agConnectCrash = AGConnectCrash.GetInstance(); | |
agConnectCrash.EnableCrashCollection(true); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void ShowLeadboard() | |
{ | |
leaderboardManager = LeaderboardManager.GetInstance(); | |
leaderboardManager.ShowLeaderboards(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void ShowRewardedAd() | |
{ | |
GameObject ads = GameObject.Find("AdsManager"); | |
AdsDemoManager adsDemoManager = ads.GetComponent<AdsDemoManager>(); | |
adsDemoManager.ShowRewardedAd(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.melike.drive.huawei; | |
import android.app.Activity; | |
import android.content.Intent; | |
import android.os.Bundle; | |
import android.provider.MediaStore; | |
import android.util.Log; | |
import android.view.View; | |
import android.widget.Button; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using HuaweiMobileServices.Drive; | |
using HuaweiMobileServices.Id; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using UnityEngine; | |
using UnityEngine.Android; | |
using UnityEngine.UI; | |
public class DriveManager : MonoBehaviour, DriveCredential.AccessMethod |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using HuaweiMobileServices.Id; | |
using HuaweiMobileServices.Utils; | |
using UnityEngine; | |
using UnityEngine.UI; | |
using HmsPlugin; | |
using UnityEngine.SceneManagement; | |
public class AccountSignIn : MonoBehaviour | |
{ | |
private const string NOT_LOGGED_IN = "No user logged in"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AndroidJavaClass jc = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); | |
AndroidJavaObject activity = jc.GetStatic<AndroidJavaObject>("currentActivity"); | |
HiAnalyticsTools.EnableLog(); | |
HiAnalyticsInstance instance = HiAnalytics.GetInstance(activity); | |
instance.SetAnalyticsEnabled(true); | |
Bundle bundleUnity = new Bundle(); | |
bundleUnity.PutString("id", "123456"); | |
instance.OnEvent("myFirstEvent", bundleUnity); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AndroidJavaClass jc = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); | |
AndroidJavaObject activity = jc.GetStatic<AndroidJavaObject>("currentActivity"); | |
HiAnalyticsTools.EnableLog(); | |
HiAnalyticsInstance instance = HiAnalytics.GetInstance(activity); | |
instance.SetAnalyticsEnabled(true); |
NewerOlder