Skip to content

Commit f6fc5d1

Browse files
Minor fix in controller
1 parent 88cf82b commit f6fc5d1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Runtime/Controller.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ public abstract class Controller : UnityEngine.MonoBehaviour, IController {
1616
public static Controller Instance;
1717

1818
/// The assets that can be added to entities.
19-
[UnityEngine.Header ("Resources")]
2019
public UnityEngine.Object[] assets;
2120

2221
/// During the awake, this system will start the initialization.
@@ -193,7 +192,7 @@ public System.Object GetService (System.Type typeOf) {
193192
}
194193

195194
/// Gets an asset from this controller.
196-
public Object GetAsset (string name) {
195+
public UnityEngine.Object GetAsset (string name) {
197196
for (var _i = 0; _i < this.assets.Length; _i++)
198197
if (this.assets[_i].name == name)
199198
return this.assets[_i];
@@ -205,7 +204,7 @@ public bool GetAsset (string name) {
205204
for (var _i = 0; _i < this.assets.Length; _i++)
206205
if (this.assets[_i].name == name)
207206
return true;
208-
throw false;
207+
return false;
209208
}
210209
}
211210
}

0 commit comments

Comments
 (0)