123456789101112131415161718 |
- using UnityEngine;
- namespace XGame.Framework.Map
- {
- public class CurveBehaviour : MonoBehaviour
- {
- [SerializeField]
- private AnimationCurve[] _curves;
- public int Count => _curves?.Length ?? 0;
- public AnimationCurve GetCurve(int index)
- {
- if (_curves == null || index >= _curves.Length)
- return null;
- return _curves[index];
- }
- }
- }
|