TestDrawScript.cs 834 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.EventSystems;
  5. using UnityEngine.UI;
  6. public class TestDrawScript : MonoBehaviour
  7. {
  8. void Start ()
  9. {
  10. DebugHelper.ActivateConsole();
  11. drawCanvas_ = GameObject.Find("DrawCanvas");
  12. //drawCanvas_.SetActive(false);
  13. controlCanvas_ = GameObject.Find("ControlCanvas");
  14. //controlCanvas_.SetActive(false);
  15. Debug.Log("Start");
  16. }
  17. void Update ()
  18. {
  19. /* var click = Input.GetKeyUp(KeyCode.Mouse0) &&
  20. EventSystem.current.IsPointerOverGameObject();
  21. if (click)
  22. {
  23. Debug.Log("click");
  24. }*/
  25. }
  26. private void OnGUI()
  27. {
  28. DebugHelper.DrawConsole();
  29. }
  30. GameObject drawCanvas_;
  31. GameObject controlCanvas_;
  32. }