Assignment for RMIT Mixed Reality in 2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
408 B

  1. namespace VRTK.Examples.Archery
  2. {
  3. using UnityEngine;
  4. public class BowAnimation : MonoBehaviour
  5. {
  6. public Animation animationTimeline;
  7. public void SetFrame(float frame)
  8. {
  9. animationTimeline["BowPullAnimation"].speed = 0;
  10. animationTimeline["BowPullAnimation"].time = frame;
  11. animationTimeline.Play("BowPullAnimation");
  12. }
  13. }
  14. }