コード例 #1
0
    void OnTriggerEnter2D(Collider2D other)
    {
        ScrollableObject scrollObject = other.gameObject.GetComponent <ScrollableObject> ();

        if (this.scrollHitListener != null && scrollObject != null)
        {
            this.scrollHitListener.OnTriggerHit(scrollObject, this.boundsType);
        }
    }
コード例 #2
0
 public void OnTriggerHit(ScrollableObject scrollableObject, ScrollableBounds.BoundsType boundsType)
 {
     if (boundsType == ScrollableBounds.BoundsType.UPPER)
     {
     }
     else if (boundsType == ScrollableBounds.BoundsType.LOWER)
     {
     }
 }