using System.Collections; using System.Collections.Generic; using UnityEngine; public class Rnd_Animation : MonoBehaviour { Animator anim; float offsetAnim; [SerializeField] string titleAnim; // Start is called before the first frame update void Start() { anim = GetComponent(); offsetAnim=Random.Range(0f, 1f); anim.Play(titleAnim,0,offsetAnim); } // Update is called once per frame void Update() { } }