I have a windmill which im wanting to use an animation, i’ve already made the animation but how do i get the windmill to play the animation by its self? not by clicking or anything just play
If there’s only one animation so I’m sure that this script will work.
Javascript:
function Start(){
animation.Play("ANIMATION NAME");
}
C#:
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
void Example() {
animation.Play("ANIMATION NAME");
}
}
Boo:
import UnityEngine
import System.Collections
class example(MonoBehaviour):
def Example():
animation.Play('ANIMATION NAME')