Пример #1
0
        public static BlockMovement AddBlockMovement(GameObject go, BoxCollision box, LayerMask layer)
        {
            var result = go.AddComponent <BlockMovement>();

            result.blockBoxCollision = box;
            result.blockLayer        = layer;
            return(result);
        }
Пример #2
0
 private Rect bounds2Rect(Bounds bounds)
 {
     return(BoxCollision.Bound2Rect(bounds));
 }