This file contains hidden or 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; | |
| public static class AndroidIdRetriever | |
| { | |
| public static string Retrieve() | |
| { | |
| AndroidJavaClass clsUnity = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); | |
| AndroidJavaObject objActivity = clsUnity.GetStatic<AndroidJavaObject>("currentActivity"); | |
| AndroidJavaObject objResolver = objActivity.Call<AndroidJavaObject>("getContentResolver"); | |
| AndroidJavaClass clsSecure = new AndroidJavaClass("android.provider.Settings$Secure"); |
This file contains hidden or 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
| # =============== # | |
| # Unity generated # | |
| # =============== # | |
| [Ll]ibrary/ | |
| [Tt]emp/ | |
| [Oo]bj/ | |
| [Bb]uild/ | |
| #Unity3D Generated File On Crash Reports | |
| sysinfo.txt |
This file contains hidden or 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 UnityEditor; | |
| using System.IO; | |
| /// <summary> | |
| /// Taken from here : http://www.jacobpennock.com/Blog/?page_id=715 and modified | |
| /// </summary> | |
| public static class CustomAssetUtility | |
| { | |
| public static void CreateAsset<T>() where T : ScriptableObject |
This file contains hidden or 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; | |
| namespace Com.Nravo.NGUI { | |
| [RequireComponent(typeof(UIDragScrollView))] | |
| public class UiHighlightCenteredItem : MonoBehaviour { | |
| // coefs to monitor | |
| // zero means target is centered, 1 means target is max away | |
| [Range(0.0f, 1.0f)] public float distanceFromCenterHorizontalCoef; |
This file contains hidden or 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.IO; | |
| using System.Security.Cryptography; | |
| using System.Text; | |
| using System.Xml.Serialization; | |
| using UnityEngine; | |
| namespace Com.Nravo.FlipTheBoard.PersistantStorage | |
| { |
NewerOlder