private bool RetrieveSubstanceOnRect(PlayerSubstanceColliderType colliderType, BoxCollider2D collider) { SubstanceManager.RetrieveSubstances( collider, parent.SubstanceSet, new PlayerSubstanceFilter { ColliderType = colliderType }, groundLayers, out bool touch); return(touch); }
private bool RetrieveSubstanceOnRect(PlayerSubstanceColliderType colliderType, Rect localRect, bool noTouchOnTriggers = false) { SubstanceManager.RetrieveSubstances( localRect.LocalToWorldRect(transform), parent.SubstanceSet, new PlayerSubstanceFilter { ColliderType = colliderType }, groundLayers, out bool touch, noTouchOnTriggers); return(touch); }
private bool RetrieveSubstancePreview(Matrix4x4 trs, SubstanceSet subSet, PlayerSubstanceColliderType colliderType, Rect localRect, bool noTouchOnTriggers = false) { SubstanceManager.RetrieveSubstances( trs.Multiply(localRect), subSet, new PlayerSubstanceFilter { ColliderType = colliderType }, groundLayers, out bool touch, noTouchOnTriggers); return(touch); }