void OnTriggerEnter2D(Collider2D other) { ScrollableObject scrollObject = other.gameObject.GetComponent <ScrollableObject> (); if (this.scrollHitListener != null && scrollObject != null) { this.scrollHitListener.OnTriggerHit(scrollObject, this.boundsType); } }
public void OnTriggerHit(ScrollableObject scrollableObject, ScrollableBounds.BoundsType boundsType) { if (boundsType == ScrollableBounds.BoundsType.UPPER) { } else if (boundsType == ScrollableBounds.BoundsType.LOWER) { } }