I have an animation (“sway1”) that has 30 frames in it then loops. I’d like to start the animation at a random one of the 30 frames and also some random time after the scene starts … so can someone help me round this out please? I’ll attach it to a prefab that is then placed in the scene.
var startAnimation = Random.Range(1, 10);
var startFrame = Random.Range(1, 30);
function Start ()
{
// animate me after startAnimation seconds at startFrame of sway1
}
Thanks!
PS. Happy Canada Day … fireworks with the kids in an hour