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

33 lines
685 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class InteractiveArea4_5 : ToolBase
{ //public GameObject 触发物体;
public Animator ;
private bool first = true;
// Start is called before the first frame update
protected override void Start()
{
base.Start();
EventTriggerListener.Get(transform.gameObject).onClick += g => {
if (first == true)
{
.GetComponent<Animator>().Play("开门");
= true;
first = false;
}
};
}
protected override void Update()
{
base.Update();
}
}