newzone command

Added newzone command and updated readme
This commit is contained in:
hyperion51 2020-04-29 11:27:55 +01:00
commit 588d89a5d0
12 changed files with 171 additions and 36 deletions

View file

@ -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;
}

View file

@ -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>();