Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
連続確率変数を乱数とカーブで
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RandomWithCurve : MonoBehaviour {
[SerializeField]
AnimationCurve curve;
void Start(){
Debug.Log("0.25を与えると : " + curve.Evaluate(0.25f));
Debug.Log("0.5を与えると : " + curve.Evaluate(0.5f));
Debug.Log("0.75を与えると : " + curve.Evaluate(0.75f));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.