12345678910111213141516171819202122232425 |
- using System;
- using UnityEngine;
- public class ColliderEvent : MonoBehaviour
- {
- private void OnMouseDown()
- {
- if (this.onMouseDown != null)
- {
- this.onMouseDown();
- }
- }
- private void OnMouseUp()
- {
- if (this.onMouseUp != null)
- {
- this.onMouseUp();
- }
- }
- public Action onMouseDown;
- public Action onMouseUp;
- }
|