Skip to content

Instantly share code, notes, and snippets.

View ARoomWithABue's full-sized avatar

Peter Bue ARoomWithABue

  • Good Block
  • Seattle, WA
View GitHub Profile
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Cryptography.ECDSA;
using System.Threading.Tasks;
namespace CryptoSandbox
{
class Program
@ARoomWithABue
ARoomWithABue / gist:72c8e0a9425593a212119c6bc5870e1a
Created November 27, 2018 18:54
Basic ManagedBehaviour Use
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DeckManager : ManagedBehaviour<DeckManager>
{
public Stack<CardData> _deck;
public GameObject prefab;
public Card Draw()
@ARoomWithABue
ARoomWithABue / gist:4958a0ed77431988189fc8928a936d83
Created November 27, 2018 18:52
Singleton for Unity MonoBehaviour
using UnityEngine;
using System.Collections;
public class ManagedBehaviour<T> : MonoBehaviour where T : ManagedBehaviour<T>
{
private static T m_Instance = null;
public static T instance
{
get
{