E_ElecCompetition/Electrical_inspectionCompet.../Assets/Script/Interactive objects/huiliuanimator.cs

39 lines
544 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class huiliuanimator : MonoBehaviour
{
public Animator huiliu;
private bool first =true;
// Start is called before the first frame update
void Start()
{
first = true;
}
// Update is called once per frame
void Update()
{
}
public void openanim() {
if (first == true)
{
huiliu.Play("»ãÁ÷Ïä");
first = false;
}
}
}