Skip to content

Instantly share code, notes, and snippets.

View Suzeep's full-sized avatar

Suzeep Suzeep

View GitHub Profile
@Suzeep
Suzeep / SpicyTest.cs
Created October 26, 2013 14:39
Spicy Pixel のConcurrency Kitを使ったサンプルコード。
using UnityEngine;
using System.Collections;
using System.Threading;
using System.Threading.Tasks;
using SpicyPixel.Threading;
using SpicyPixel.Threading.Tasks;
public class SpicyTest : ConcurrentBehaviour
{
// Awake
@Suzeep
Suzeep / TransformList.cs
Created October 3, 2013 12:16
アタッチしたオブジェクトのTransformを全取得するスクリプト。
using UnityEngine;
using System;
using System.Collections.Generic;
//----------------------------------------------------------------------
//
// アタッチしたオブジェクト以下のTransformを全取得するスクリプト
// 主にキャラクターの関節取得用
//
// ※
@Suzeep
Suzeep / ProfileStats.cs
Last active December 24, 2015 11:18
FPS、メモリ使用量等を画面に表示するスクリプト。
using UnityEngine;
using System.Collections;
using System.Text;
using System.Linq;
[ExecuteInEditMode()]
public class ProfileStats : MonoBehaviour
{
//------------------------------------------------------------
@Suzeep
Suzeep / Singleton.cs
Last active December 24, 2015 05:09
Unityでのシングルトンクラス。
using UnityEngine;
using System.Collections;
//=====================================================================================
// シングルトン
//=====================================================================================
public abstract class Singleton<T> : MonoBehaviour where T : Singleton<T>
{
//-------------------------------------------------------------------------------------
// インスタンス取得