Aucune description
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

Gif_gr1.cs 763B

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