Nav apraksta
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

1234567891011121314151617181920212223242526
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class Gif_gr2 : MonoBehaviour
  5. {
  6. [SerializeField] GameObject 消防監控系統_pl,電能監控系統_pl,電能報表_pl,詳細電表_pl;
  7. public float doubleTapTimeThreshold = 0.3f; // 连点时间阈值,单位为秒
  8. private float lastTapTime = 0f;
  9. // Start is called before the first frame update
  10. void Start()
  11. {
  12. }
  13. // Update is called once per frame
  14. void Update()
  15. {
  16. if(Main.Global.副電表有異常==true){
  17. GetComponent<Animator>().SetBool("有異常",true);
  18. }else{
  19. GetComponent<Animator>().SetBool("有異常",false);
  20. }
  21. }
  22. }