Skip to content

Commit

Permalink
prefabs: Update Gate relations.
Browse files Browse the repository at this point in the history
  • Loading branch information
freezy committed Dec 7, 2024
1 parent e488c86 commit 8c8644f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Runtime/PrefabProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ public GameObject CreateGate(int type)
var gatesPath = $"{AssetLibraryPath}/Gates/VPX";
switch (type) {
case GateType.GateLongPlate:
return AssetDatabase.LoadAssetAtPath<GameObject>($"{gatesPath}/Gate - Long Plate.prefab");
return AssetDatabase.LoadAssetAtPath<GameObject>($"{gatesPath}/Gate (VPX) - Plate, Long.prefab");
case GateType.GatePlate:
return AssetDatabase.LoadAssetAtPath<GameObject>($"{gatesPath}/Gate - Plate.prefab");
return AssetDatabase.LoadAssetAtPath<GameObject>($"{gatesPath}/Gate (VPX) - Plate.prefab");
case GateType.GateWireRectangle:
return AssetDatabase.LoadAssetAtPath<GameObject>($"{gatesPath}/Gate - Wire Rectangle.prefab");
return AssetDatabase.LoadAssetAtPath<GameObject>($"{gatesPath}/Gate (VPX) - Wire, Rectangle.prefab");
case GateType.GateWireW:
return AssetDatabase.LoadAssetAtPath<GameObject>($"{gatesPath}/Gate - Wire W.prefab");
return AssetDatabase.LoadAssetAtPath<GameObject>($"{gatesPath}/Gate (VPX) - Wire, W.prefab");
default:
throw new ArgumentException(nameof(type), $"Unknown gate type {type}.");
}
Expand Down

0 comments on commit 8c8644f

Please sign in to comment.