コード例 #1
0
 private bool RetrieveSubstanceOnRect(PlayerSubstanceColliderType colliderType, BoxCollider2D collider)
 {
     SubstanceManager.RetrieveSubstances(
         collider,
         parent.SubstanceSet,
         new PlayerSubstanceFilter {
         ColliderType = colliderType
     },
         groundLayers,
         out bool touch);
     return(touch);
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 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);
 }