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.IO; | |
using System.Security.Cryptography; | |
using System.Text; | |
using System.Xml.Serialization; | |
using UnityEngine; | |
namespace Com.Nravo.FlipTheBoard.PersistantStorage | |
{ |
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; | |
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 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 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 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 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 HutongGames.PlayMaker; | |
using UnityEngine; | |
[ActionCategory("SmoothMoves")] | |
[Tooltip("Sets the sprite color of the Sprite")] | |
public class SmoothMoves_SetSpriteColor : FsmStateAction | |
{ | |
[RequiredField] | |
[CheckForComponent(typeof(SmoothMoves.Sprite))] | |
[Tooltip("Game Object to set the color on.")] |
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; | |
/// <summary> | |
/// PlayerPrefs wrapper to provide saving boolean values. | |
/// </summary> | |
public static class CustomPlayerPrefs | |
{ | |
private const int StorageFalse = 0; | |
private const int StorageTrue = 1; |
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 UnityEditor; | |
[UTActionInfoAttribute(actionCategory = "Build")] | |
[UTDoc(title = "Set Android Texture Compression", description = "Sets Android texture Compression.")] | |
[UTInspectorGroups(groups = new []{ "Player" })] | |
public class UTSetAndroidBuildSubtarget : UTAction | |
{ | |
[UTDoc(description = "Android targets, only: The texture compression.")] | |
[UTInspectorHint(group = "Player", order = 4, required = 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
using JetBrains.Annotations; | |
using UnityEngine; | |
[PublicAPI] | |
public abstract class MonoSingleton<T> : MonoBehaviour where T : MonoSingleton<T> | |
{ | |
static T _instance; | |
public static T Instance | |
{ |
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.Collections.Generic; | |
using System; | |
namespace TarasOsirisGists | |
{ | |
public static class ListUtils | |
{ | |
private static Random _rnd; | |
/// <summary> |
OlderNewer