BluetoothHolder.cs 583 B

1234567891011121314151617181920212223
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class BluetoothHolder : MonoBehaviour
  5. {
  6. public static BluetoothHolder ins;
  7. void Start() {
  8. ins = this;
  9. CloseDebug();
  10. }
  11. public void openDebug() {
  12. this.transform.Find("Canvas").gameObject.SetActive(true);
  13. this.transform.Find("Objects").gameObject.SetActive(true);
  14. }
  15. public void CloseDebug() {
  16. this.transform.Find("Canvas").gameObject.SetActive(false);
  17. this.transform.Find("Objects").gameObject.SetActive(false);
  18. }
  19. }