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 System; | |
using UnityEngine; | |
using Random = UnityEngine.Random; | |
/* | |
* Example usage: | |
* float normalizedProbability = probabilityCurve.SampleCurve(); | |
* float randomValue = normalizedProbability * (maxValue - minValue) + minValue); | |
*/ |
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; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
#endif | |
public class CursorManager : MonoBehaviour | |
{ | |
[SerializeField] private bool m_hideCursor = false; | |
[SerializeField] private Texture2D m_cursorTexture; | |
[SerializeField] private Vector2 m_cursorHotspot; |