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.IO; | |
public class Screenshot : MonoBehaviour | |
{ | |
[SerializeField] | |
KeyCode key = KeyCode.Space; | |
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
Shader "Sprites/NonDirectionalLight" | |
{ | |
Properties { | |
_MainTex ("Texture", 2D) = "white" {} | |
_Color ("Tint", Color) = (1,1,1,1) | |
[MaterialToggle] PixelSnap ("Pixel snap", Float) = 0 | |
} | |
SubShader { | |
Tags { |
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
static public class EnumUtil | |
{ | |
static public T Parse<T>(IEnumerable<string> src) | |
where T : struct, IComparable, IFormattable, IConvertible | |
{ | |
int value = 0; | |
foreach (var it in src) | |
{ | |
value |= (int)System.Enum.Parse(typeof(T), it); | |
} |
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
static public class ColorUtil | |
{ | |
static public bool TryParseArgbString(string argb, out Color color) | |
{ | |
if (ColorUtility.TryParseHtmlString(argb, out color)) | |
{ | |
var a = color.r; | |
color.r = color.g; | |
color.g = color.b; | |
color.b = color.a; |
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
Shader "TSKT/Sprites/HeightGradation" | |
{ | |
Properties | |
{ | |
[PerRendererData] _MainTex ("Sprite Texture", 2D) = "white" {} | |
_Color ("Tint", Color) = (1,1,1,1) | |
[MaterialToggle] PixelSnap ("Pixel snap", Float) = 0 | |
_GradationColor("GradationColor", Color) = (0,0,0,1) | |
_GradationRange("GradationRange", Vector) = (10, -10, 0.0, 0.0) | |
} |
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; | |
// Unity5.5.0b10 | |
namespace TSKT | |
{ | |
public class ResourceLoader<T> : CustomYieldInstruction | |
where T : UnityEngine.Object |
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.Collections.Generic; | |
using UnityEngine.UI; | |
// Unity5.3.4p4 | |
namespace TSKT | |
{ | |
[RequireComponent(typeof(Text))] |
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; | |
// Unity5.5.0p1 | |
namespace TSKT | |
{ | |
public class TimeScaler | |
{ |
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; | |
namespace TSKT | |
{ | |
[DisallowMultipleComponent] | |
[ExecuteInEditMode] | |
[RequireComponent(typeof(Renderer))] | |
public class Billboard : MonoBehaviour | |
{ |
OlderNewer