Exemple #1
0
        private static Vector3 GetBlueprintBlockSize(BlueprintBlock blueprintBlock)
        {
            var size = blueprintBlock.runtimeValues.size;

            if (blueprintBlock.Rotation % 2 == 1)
            {
                size = new Vector2(size.y, size.x);
            }

            return(new Vector3(size.x, size.y));
        }
Exemple #2
0
 private static Vector3 GetBlueprintPosition(BlueprintBlock blueprintBlock)
 {
     return(new Vector3(
                blueprintBlock.position.x,
                blueprintBlock.position.y));
 }
Exemple #3
0
 private static Bounds GetBounds(BlueprintBlock blueprintBlock)
 {
     return(new Bounds(
                GetBlueprintPosition(blueprintBlock),
                GetBlueprintBlockSize(blueprintBlock)));
 }