Last active
January 12, 2022 08:27
-
-
Save superbderrick/c453af827e768602edc97412d17ff79b to your computer and use it in GitHub Desktop.
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 System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Runtime.InteropServices; | |
using UnityEngine.UI; | |
using UnityEngine; | |
#if UNITY_IOS || UNITY_TVOS | |
public class NativeAPI { | |
[DllImport("__Internal")] | |
public static extern void loadedUnity(string status); | |
} | |
#endif | |
public class EventManager : MonoBehaviour | |
{ | |
private void Start() | |
{ | |
#if UNITY_IOS && !UNITY_EDITOR | |
NativeAPI.loadedUnity(status); | |
#endif | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment