Skip to content

Instantly share code, notes, and snippets.

@nagedev
nagedev / WireGrid.cs
Last active February 3, 2018 23:19
Wire grid with Perlin noise
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class WireGrid : MonoBehaviour
{
public int size = 64;
public float width = .1f;
public float height = 10f;
@nagedev
nagedev / SingletonScriptable.cs
Last active October 23, 2018 12:06
SingletonScriptable
using System.Linq;
using UnityEditor;
using UnityEngine;
public abstract class SingletonScriptable<T> : ScriptableObject where T : ScriptableObject
{
static T _instance = null;
public static T instance
{
get