Ejemplo n.º 1
0
    protected void OnEnable()
    {
        var bounds  = gameObject.GetComponent <Collider2D>().bounds;
        var bubbles = CastingUtil.BoundsBoxCast(bounds, 1 << (int)Layers.GameObjects);

        foreach (var bubble in bubbles)
        {
            ActivateBubble(bubble.transform.gameObject, true);
        }
    }
Ejemplo n.º 2
0
 protected bool IsTouchingBubbles()
 {
     return(CastingUtil.BoundsBoxCast(castingBox.bounds, 1 << (int)Layers.GameObjects).Length > 0);
 }