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 UnityEngine.UI; | |
using System.Collections; | |
/// <summary> | |
/// 次の目標値を決めるクラス | |
/// </summary> | |
public class CreateNextScore : MonoBehaviour { | |
public float invokeTime = 1; //何秒に一回呼ぶか |
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(CreateNextScore))] | |
public class CreateNextScoreEditor : Editor | |
{ | |
public override void OnInspectorGUI() | |
{ | |
var obj = target as CreateNextScore; |
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; | |
[System.Serializable] | |
public class MinMaxSliderValue | |
{ | |
public float minValue = 0; | |
public float maxValue = 0; | |
} |
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 UnityEngine.UI; | |
using System.Collections; | |
/// <summary> | |
/// 次の目標値を決めるクラス | |
/// </summary> | |
public class CreateNextScore : MonoBehaviour { | |
public float invokeTime = 1; //何秒に一回呼ぶか |
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.Generic; | |
/// <summary> | |
/// 要素と重みのリストから確率に従ったデータを取り出すクラス | |
/// </summary> | |
public class RatePicker<T> | |
{ | |
private List<int> RateList = new List<int>(); | |
private List<T> keyList = new List<T>(); |
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 RatePickerSample : MonoBehaviour { | |
public enum ColorKey : int{ | |
Red, | |
Blue, | |
Green, |
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 UnityEngine.UI; | |
using System.Collections; | |
/// <summary> | |
/// 加減算カウンタークラス | |
/// 機能 | |
/// 比率カウント | |
/// 直接カウント | |
/// 敷き詰め、敷き詰める長さ |
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; | |
/// <summary> | |
/// 反発回数制限クラス | |
/// 指定時間内に特定回数以上オブジェクトに接触処理させないためのクラス | |
/// オブジェクトの名前を利用し、接触回数を制限する。 | |
/// 同じ名前のオブジェクトは区別されない | |
/// 時間が経過すると削除されるQueueを作成することで処理している |
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; | |
public class CollisionLimitSampleObject : MonoBehaviour { | |
public enum Way | |
{ | |
Up = 1, | |
Down = 2, | |
Left = 4, |
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; | |
/// <summary> | |
/// 時間を計測してtrue,falseを返すクラス | |
/// </summary> | |
public class TimeDo | |
{ | |
/******************************************************** | |
* 型 |
OlderNewer