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 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 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 System.Collections.Generic; | |
using System; | |
namespace TarasOsirisGists | |
{ | |
public static class ListUtils | |
{ | |
private static Random _rnd; | |
/// <summary> |
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 RuntimePlatformUtils | |
{ | |
private static RuntimePlatform _platform; | |
static RuntimePlatformUtils() | |
{ | |
_platform = Application.platform; | |
} |
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; | |
using UnityEngine; | |
public class LoopedEnumList<T> | |
{ | |
private readonly List<T> _items; | |
private readonly int _startIndex; | |
private int _currentIndex; |
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 HutongGames.PlayMaker; | |
[ActionCategory("NGUI")] | |
[HutongGames.PlayMaker.Tooltip("Updates NGUI Label with provided parameters")] | |
public class NGUI_UpdateLabel : FsmStateAction | |
{ | |
[RequiredField] | |
[CheckForComponent(typeof(UILabel))] | |
[HutongGames.PlayMaker.Tooltip("Game Object to update.")] |
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 | |
{ |
OlderNewer