Advertisement
Pro_Unit

Factor

Sep 24th, 2022
992
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.31 KB | None | 0 0
  1. using System;
  2.  
  3. using UnityEngine;
  4.  
  5. namespace UtilityAIExample
  6. {
  7.     [Serializable]
  8.     public class Factor
  9.     {
  10.         [SerializeField] private string _label;
  11.         [SerializeField] private AnimationCurve _curve;
  12.  
  13.         public string Label => _label;
  14.  
  15.         public float Evaluate(float time) =>
  16.             _curve.Evaluate(time);
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement