Guest User

Untitled

a guest
Sep 5th, 2016
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.36 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Runtime.Serialization;
  3.  
  4. [DataContract]
  5. public class Prop : IProp
  6. {
  7.     [DataMember]
  8.     public AnimationCurve curve;
  9.  
  10.     public Prop() {
  11.         curve = new AnimationCurve(new Keyframe(0, 0), new Keyframe(1, 1));
  12.     }
  13.  
  14.     public object Evaulate(float time) {
  15.         return curve.Evaluate(time);        
  16.     }
  17. }
Add Comment
Please, Sign In to add comment