This file contains hidden or 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.Collections.Generic; | |
public class InfomationMonitor : SingletonMonoBehaviour<InfomationMonitor> { | |
public Dictionary<string, string> param = new Dictionary<string, string>(); | |
private static bool monitorEnable = false; | |
This file contains hidden or 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.IO; | |
public class LoadTexture : MonoBehaviour { | |
[SerializeField] string fileName = "icon"; | |
[SerializeField] GUITexture gui; | |
This file contains hidden or 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
delegate void DownloadAction(WWW www); | |
public Texture mainTexture; | |
void Start() | |
{ | |
StartCoroutine(DownloadAndAction(urls[0], SetMainTexture)); | |
} | |
void SetMainTexture(WWW www ) |
This file contains hidden or 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
void Awake() | |
{ | |
Function( err =>{ Debug.Log(err); }); // 1 | |
Function( DebugLog ); // 2 | |
} | |
// 1と2に必要 | |
delegate void ErrorMessage(string str); | |
void Function(ErrorMessage err) | |
{ |
This file contains hidden or 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
List<GameObject>activeObjects = objs.FindAll( (obj) => obj.activeSelf == true ); |
This file contains hidden or 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
public Texture mainTexture; | |
delegate void DownloadAction(WWW www); | |
void Start () | |
{ | |
StartCoroutine(DownloadAndAction(textureUrl, (www)=> | |
{ | |
mainTexture = www.texture; | |
})); | |
} |
This file contains hidden or 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; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
#endif | |
[ExecuteInEditMode] | |
public class DrawMeshOnSceneview : MonoBehaviour { |
This file contains hidden or 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 UnityEditor; | |
using System.IO; | |
/// <summary> | |
// ScriptableObjectをプレハブとして出力する汎用スクリプト | |
/// </summary> | |
// <remarks> | |
// 指定したScriptableObjectをプレハブに変換する。 |
This file contains hidden or 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 UnityEditor; | |
[CustomEditor(typeof(Transform))] | |
public class TransformEditorWith2D : Editor | |
{ | |
public override void OnInspectorGUI () | |
{ | |
Transform t = target as Transform; |
This file contains hidden or 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; | |
[RequireComponent( typeof(AudioSource))] | |
public class AudioFade : MonoBehaviour | |
{ | |
int volume = 0; | |
OlderNewer