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.Collections.Generic; | |
namespace UnityEngineExtra | |
{ | |
public class DontDestroyParent : MonoBehaviour | |
{ | |
#region UNITY_EVENT |
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; | |
// シーン1のGUI | |
public class GUIController : SingletonMonoBehaviour<GUIController> { | |
void OnGUI() | |
{ | |
GUILayout.BeginHorizontal(); | |
if(GUILayout.Button( "add score: " + ScoreController.Instance.score, GUILayout.Height(50) )) |
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 EscapeGame : MonoBehaviour { | |
void Start () | |
{ | |
FlagManager.Instance.ResetFlags(); | |
Debug.Log("Stage Start"); |
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; | |
[ExecuteInEditMode] | |
public class AttatchedPrefab : MonoBehaviour { | |
#if UNITY_EDITOR | |
void Start () { | |
var pip = gameObject.AddComponent<PIP>(); |
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 TakeShot : MonoBehaviour { | |
public float maxScale = 2048; | |
void OnGUI() | |
{ | |
if( GUILayout.Button("take")) |
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 TakeShot : MonoBehaviour { | |
public float maxScale = 2048; | |
void OnGUI() | |
{ | |
if( GUILayout.Button("take")) |
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.RegularExpressions; | |
using System.IO; | |
using UnityEditor; | |
public class OverrideFile : AssetPostprocessor { | |
static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromPath) | |
{ |
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 CameraRange : MonoBehaviour { | |
#if UNITY_EDITOR | |
float depth = 10; | |
public bool drawSubline = true; |
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.Collections.Generic; | |
[ExecuteInEditMode] | |
[RequireComponent(typeof(TextMesh))] | |
public class OutlineText : MonoBehaviour { | |
public Color outlineColor = Color.black; | |
[Range(0.05f, 0.3f)] public float size = 0.1f; |
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; | |
[ExecuteInEditMode] | |
public class FontScalable : MonoBehaviour { | |
[Range(1, 6)] | |
public float fontScale = 1; | |
TextMesh tetxMesh; |