newzone command
Added newzone command and updated readme
This commit is contained in:
parent
e9b32dec0b
commit
588d89a5d0
12 changed files with 171 additions and 36 deletions
|
|
@ -31,14 +31,14 @@ public class ClickCatcher : MonoBehaviour, IPointerEnterHandler, IPointerExitHan
|
|||
|
||||
public void OnPointerEnter(PointerEventData eventData)
|
||||
{
|
||||
Debug.Log("Pointer Entered");
|
||||
//Debug.Log("Pointer Entered");
|
||||
OnEnter?.Invoke(eventData);
|
||||
PointerIsInside = true;
|
||||
}
|
||||
|
||||
public void OnPointerExit(PointerEventData eventData)
|
||||
{
|
||||
Debug.Log("Pointer Exited");
|
||||
//Debug.Log("Pointer Exited");
|
||||
OnExit?.Invoke(eventData);
|
||||
PointerIsInside = false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,6 +10,11 @@ public class ClickableCollider : MonoBehaviour
|
|||
|
||||
public void Click(PointerEventData eventData) => OnClick?.Invoke(this, eventData);
|
||||
|
||||
public void Clear()
|
||||
{
|
||||
OnClick = null;
|
||||
}
|
||||
|
||||
void Start()
|
||||
{
|
||||
var proto = GetComponent<Prototype>();
|
||||
|
|
|
|||
Loading…
Reference in a new issue