30 lines
502 B
C#
30 lines
502 B
C#
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<Animator>();
|
|
offsetAnim=Random.Range(0f, 1f);
|
|
|
|
|
|
anim.Play(titleAnim,0,offsetAnim);
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
}
|