Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Runtime.Serialization;
- [DataContract]
- public class Prop : IProp
- {
- [DataMember]
- public AnimationCurve curve;
- public Prop() {
- curve = new AnimationCurve(new Keyframe(0, 0), new Keyframe(1, 1));
- }
- public object Evaulate(float time) {
- return curve.Evaluate(time);
- }
- }
Add Comment
Please, Sign In to add comment