et1337

Animation sample

Dec 18th, 2011
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.48 KB | None | 0 0
  1. renderer.BlurAmount.Value = 3.0f;
  2. renderer.Tint.Value = Vector3.Zero;
  3. script.Add("Animation", new Animation
  4. (
  5.     new Animation.Sequence
  6.     (
  7.         new Animation.Vector3MoveTo(renderer.Tint, Vector3.One, 2.0f),
  8.         new Animation.Delay(1.0f),
  9.         new Animation.Execute(delegate() { playerModel.CurrentClip.Value = "Recover"; }),
  10.         new Animation.Delay(3.0f),
  11.         new Animation.Execute(delegate() { enablePlayerComponents(true); }),
  12.         new Animation.FloatMoveTo(renderer.BlurAmount, 0.0f, 4.0f)
  13.     )
  14. )
Advertisement
Add Comment
Please, Sign In to add comment