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
key_trigger { | |
input: KEY_SPACE | |
action: "space" | |
} | |
key_trigger { | |
input: KEY_EXCLAIM | |
action: "exclaim" | |
} | |
key_trigger { | |
input: KEY_QUOTEDBL |
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 UnityEngine; | |
using UnityEngine.Events; | |
public class Test : MonoBehaviour | |
{ | |
public UnityEvent Event; | |
public Action CustomAction; | |
void 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 UnityEngine; | |
using System.Xml; | |
using UnityEditor; | |
/// <summary> | |
/// http://paletton.com | |
/// Save as xml | |
/// In UnityColor picker create new palette and save it to the project editor |
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; | |
using System.Linq; | |
using System.Text; | |
using System.Text.RegularExpressions; | |
public static class ConvertSerializationVersion | |
{ | |
private static Regex objectIDSearch = new Regex("--- !u!(?:[0-9]{1,5}) &([0-9]*)"); |
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 class Singleton<T> : MonoBehaviour where T : MonoBehaviour | |
{ | |
static T _instance; | |
static readonly object _lock = new object(); | |
public static bool Initialized() | |
{ |
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; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class VKPhotoAlbumUploader | |
{ | |
public const int ERROR_VK_INIT_PROBLEM = 251; | |
public const int ERROR_VK_INIT_TIMEOUT = 252; | |
public string AlbumName = "TestAlbum"; | |
public int ErrorCode { get; private set; } |
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 UnityEngine; | |
using UnityEditor; | |
using PaintCraft.Utils; | |
using System.IO; | |
using System.Linq; | |
namespace PaintCraft.Editor{ | |
[CustomPropertyDrawer(typeof(TexturePathAttribute))] |
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.Security.Cryptography; | |
using System.IO; | |
using System; | |
using UnityEditor; | |
public class RandomColor { | |
uint autoColorId; | |
RijndaelManaged rijAlg; | |
public RandomColor(){ |
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
// /** | |
// * Easing equation float for a circular (sqrt(1-t^2)) easing out: decelerating from zero velocity. | |
// * | |
// * @param t Current time (in frames or seconds). | |
// * @param b Starting value. | |
// * @param c Change needed in value. | |
// * @param d Expected easing duration (in frames or seconds). | |
// * @return The correct value. | |
// */ | |
// public static float EaseOutCirc (float t, float b, float c, float d) { |
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; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class ColorSequenceGenerator { | |
static int[] sequence = new int[]{0, 21, 3, 18, 6, 15, 9, 12}; | |
static Color32 GetColor(int colorId){ |