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 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; | |
[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 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 UnityEngine.UI; | |
using System.Collections; | |
/// <summary> | |
/// 次の目標値を決めるクラス | |
/// </summary> | |
public class CreateNextScore : MonoBehaviour { | |
public float invokeTime = 1; //何秒に一回呼ぶか |
NewerOlder