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.
 
 
 

16 lines
408 B

namespace VRTK.Examples.Archery
{
using UnityEngine;
public class BowAnimation : MonoBehaviour
{
public Animation animationTimeline;
public void SetFrame(float frame)
{
animationTimeline["BowPullAnimation"].speed = 0;
animationTimeline["BowPullAnimation"].time = frame;
animationTimeline.Play("BowPullAnimation");
}
}
}