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; | |
using UnityEngine.InputSystem; | |
public static class InputActionExtension | |
{ | |
static public System.IDisposable SubscribePerform(this InputAction action, | |
System.Action<InputAction.CallbackContext> callback) | |
{ |
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 UniRx; | |
namespace TSKT | |
{ | |
public static class ReactiveDictionaryExtentions | |
{ | |
public static ReadOnlyReactiveProperty<V> ObserveValue<K, V>(this ReactiveDictionary<K, V> dict, K key, V defaultValue = default) | |
{ | |
var comparer = EqualityComparer<K>.Default; | |
var hashCode = comparer.GetHashCode(key); |
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; | |
namespace TSKT | |
{ | |
public class UnlimitedArray2<T> | |
{ | |
T[,] array; | |
public Vector2Int Min { 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 UnityEngine; | |
using System.Collections; | |
using System; | |
using System.Text; | |
using System.IO; | |
using System.IO.Compression; | |
// Unity2018.3.0b12 | |
namespace TSKT |
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.Collections; | |
using System.Collections.Generic; | |
using Unity.Collections; | |
using UnityEngine; | |
namespace TSKT | |
{ | |
public struct NativeBitArray : IDisposable, IEnumerable<bool> | |
{ |
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.Collections; | |
using System.Collections.Generic; | |
using Unity.Collections; | |
using UnityEngine; | |
namespace TSKT | |
{ | |
public struct NativeList<T> : IDisposable, IEnumerable<T> | |
where T : struct |
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 SnapAngleSample : MonoBehaviour | |
{ | |
private void Update() | |
{ | |
var v = Input.GetAxis("Vertical"); | |
var h = Input.GetAxis("Horizontal"); |
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; | |
using UnityEngine.Networking; | |
using System.Linq; | |
// https://developers.google.com/sheets/guides/concepts?hl=ja | |
namespace TSKT | |
{ |
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
// Copyright (c) 2016 Unity Technologies | |
// Released under the MIT license | |
Shader "Sprites/Heat" | |
{ | |
Properties | |
{ | |
[PerRendererData] _MainTex ("Sprite Texture", 2D) = "white" {} | |
_Color ("Tint", Color) = (1,1,1,1) | |
[MaterialToggle] PixelSnap ("Pixel snap", Float) = 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; | |
using UnityEngine; | |
using UnityStandardAssets.ImageEffects; | |
namespace TSKT | |
{ | |
[AddComponentMenu("TSKT/Image Effects/HeatShimmer")] | |
[RequireComponent(typeof(Camera))] | |
public class HeatShimmer : ImageEffectBase | |
{ |
NewerOlder