Skip to content

Commit 88cf82b

Browse files
Minor refactor in Asset Getter
1 parent 0b1443a commit 88cf82b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Runtime/EntityComponent.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ public UnityEngine.Object AddAsset (UnityEngine.Object asset) =>
5454
UnityEngine.Object.Instantiate (asset, UnityEngine.Vector3.zero, UnityEngine.Quaternion.identity, this.transform);
5555

5656
/// Loads a asset from the controller and adds it as an asset to the entity.
57-
public UnityEngine.Object AddAsset (string assetName) {
58-
return this.AddAsset (Controller.Instance.GetAsset (assetName));
57+
public UnityEngine.Object AddAsset (string name) {
58+
return this.AddAsset (Controller.Instance.GetAsset (name));
5959
}
6060

6161
/// Sets the position of an entity.

0 commit comments

Comments
 (0)