Last active
December 12, 2015 07:38
-
-
Save shinriyo/4738242 to your computer and use it in GitHub Desktop.
iOSのインジゲーターができない Unity側
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 UnityEngine; | |
using System.Collections; | |
using System.Runtime.InteropServices; | |
public class UIActivityIndicatorView | |
{ | |
#if UNITY_IPHONE | |
[DllImport("__Internal")] | |
private static extern void startSpinner(); | |
#endif | |
public static void IPhoneStartSpinner() | |
{ | |
#if UNITY_IPHONE | |
startSpinner(); | |
#endif | |
} | |
#if UNITY_IPHONE | |
[DllImport("__Internal")] | |
private static extern void stopSpinner(); | |
#endif | |
public static void IPhoneStopSpinner() | |
{ | |
#if UNITY_IPHONE | |
stopSpinner(); | |
#endif | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment