MouseDrag5.cs 437 B

12345678910111213141516171819202122232425262728
  1. using UnityEngine;
  2. public class MouseDrag5 : MonoBehaviour
  3. {
  4. public int ido;
  5. public bool isClick;
  6. public Maid maid = null;
  7. public int no;
  8. public GameObject obj;
  9. public void OnMouseDown()
  10. {
  11. if (maid == null)
  12. {
  13. return;
  14. }
  15. if (ido == 1)
  16. {
  17. isClick = true;
  18. }
  19. if (ido == 2)
  20. {
  21. isClick = true;
  22. }
  23. }
  24. }