Skip to content

Commit 5e2029c

Browse files
committed
api: Fix naming.
1 parent 4d5074e commit 5e2029c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Editor/BlueprintProjector.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,25 +38,25 @@ private static void CreateBlueprintProjector()
3838
Undo.RegisterCreatedObjectUndo(bluePrintProjector, "Blueprint Decal");
3939

4040
// find table and parent
41-
TableAuthoring ta;
41+
TableComponent tableComp;
4242
Transform parent;
4343

4444
// if nothing selected, use active table
4545
if (Selection.activeGameObject == null) {
46-
ta = TableSelector.Instance.SelectedTable;
46+
tableComp = TableSelector.Instance.SelectedTable;
4747
parent = bluePrintProjector.transform.root;
4848

4949
} else {
5050
// otherwise, find parent in hierarchy
51-
ta = Selection.activeGameObject.GetComponentInParent<TableAuthoring>();
51+
tableComp = Selection.activeGameObject.GetComponentInParent<TableComponent>();
5252
parent = Selection.activeGameObject.transform;
5353

5454
// if none in hierarchy, fall back to active table
55-
if (ta == null) {
56-
ta = TableSelector.Instance.SelectedTable;
55+
if (tableComp == null) {
56+
tableComp = TableSelector.Instance.SelectedTable;
5757
}
5858
}
59-
if (ta == null) {
59+
if (tableComp == null) {
6060
EditorUtility.DisplayDialog(
6161
"Blueprint Projector",
6262
"No table found in scene. The blueprint projector only works with a table.",
@@ -65,7 +65,7 @@ private static void CreateBlueprintProjector()
6565
}
6666

6767
// adjust parameters
68-
var playfieldAuthoring = ta.GetComponentInChildren<PlayfieldAuthoring>();
68+
var playfieldAuthoring = tableComp.GetComponentInChildren<PlayfieldComponent>();
6969
bluePrintProjector.transform.SetParent(parent, true);
7070
var extents = playfieldAuthoring.GetComponent<MeshRenderer>().bounds.extents;
7171
var center = playfieldAuthoring.GetComponent<MeshRenderer>().bounds.center;

0 commit comments

Comments
 (0)