Animation won’t continually play with this script.
using UnityEngine;
using System.Collections;
public class AnimationClass : MonoBehaviour {
void Example() {
animation.Play("EnemyPaul_Action");
animation.Play("EnemyPaul_Action", PlayMode.StopAll);
animation.wrapMode = WrapMode.Loop;
}
}
What would be the cause?