KYJxierang/Assets/Extractive_Industry_2/Shaders/Rnd_Animation.cs
2024-12-23 06:02:30 +08:00

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()
{
}
}