Skip to content

Instantly share code, notes, and snippets.

@superbderrick
Last active January 12, 2022 08:27
Show Gist options
  • Save superbderrick/c453af827e768602edc97412d17ff79b to your computer and use it in GitHub Desktop.
Save superbderrick/c453af827e768602edc97412d17ff79b to your computer and use it in GitHub Desktop.
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