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; | |
//===================================================================================== | |
// シングルトン | |
//===================================================================================== | |
public abstract class Singleton<T> : MonoBehaviour where T : Singleton<T> | |
{ | |
//------------------------------------------------------------------------------------- | |
// インスタンス取得 |
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.Text; | |
using System.Linq; | |
[ExecuteInEditMode()] | |
public class ProfileStats : MonoBehaviour | |
{ | |
//------------------------------------------------------------ |
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; | |
using System.Collections.Generic; | |
//---------------------------------------------------------------------- | |
// | |
// アタッチしたオブジェクト以下のTransformを全取得するスクリプト | |
// 主にキャラクターの関節取得用 | |
// | |
// ※ |
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.Threading; | |
using System.Threading.Tasks; | |
using SpicyPixel.Threading; | |
using SpicyPixel.Threading.Tasks; | |
public class SpicyTest : ConcurrentBehaviour | |
{ | |
// Awake |
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; | |
public class Sample : MonoBehaviour | |
{ | |
// member | |
public int m_Count; | |
public int[] m_CountArray = new int[ 4 ]; | |
public float m_DeltaTime; | |
} |
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; | |
//===================================================================================== | |
// class SystemInstance | |
//===================================================================================== | |
public class SystemInstance : Singleton<SystemInstance> | |
{ | |
//===================================================================================== | |
// constant |
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; | |
public class ShurikenEffectScale : MonoBehaviour | |
{ | |
// Awake | |
void Awake() | |
{ | |
// mul scale to particles | |
var particles = this.gameObject.GetComponentsInChildren<ParticleSystem>(); |
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.Generic; | |
public class TransformList : MonoBehaviour | |
{ | |
// Start | |
void Start() | |
{ | |
Transform[] obj_list = this.GetComponentsInChildren<Transform>(); | |
for( int i=0; i < obj_list.Length; ++i ){ |
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 UnityEngine.Profiling; | |
using System.Collections; | |
using System.Text; | |
using System.Linq; | |
[ExecuteInEditMode()] | |
//===================================================================================== | |
//===================================================================================== | |
// class ProfileStats |
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; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Runtime.Serialization.Formatters.Binary; | |
using System.Linq; | |
//================================================================================ | |
// Unity用 汎用ライブラリ | |
//================================================================================ |
OlderNewer