We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3267663 commit 0b1443aCopy full SHA for 0b1443a
Runtime/Controller.cs
@@ -191,5 +191,21 @@ public System.Object GetService (System.Type typeOf) {
191
return true;
192
return false;
193
}
194
+
195
+ /// Gets an asset from this controller.
196
+ public Object GetAsset (string name) {
197
+ for (var _i = 0; _i < this.assets.Length; _i++)
198
+ if (this.assets[_i].name == name)
199
+ return this.assets[_i];
200
+ throw new System.Exception ("Unable to get asset, it was not added to the controller");
201
+ }
202
203
+ /// Check whether this controller has an asset.
204
+ public bool GetAsset (string name) {
205
206
207
+ return true;
208
+ throw false;
209
210
211
0 commit comments