Skip to content

Commit

Permalink
Minor fix in controller
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreylanters authored Jun 22, 2020
1 parent 88cf82b commit f6fc5d1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Runtime/Controller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ public abstract class Controller : UnityEngine.MonoBehaviour, IController {
public static Controller Instance;

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

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

/// Gets an asset from this controller.
public Object GetAsset (string name) {
public UnityEngine.Object GetAsset (string name) {
for (var _i = 0; _i < this.assets.Length; _i++)
if (this.assets[_i].name == name)
return this.assets[_i];
Expand All @@ -205,7 +204,7 @@ public bool GetAsset (string name) {
for (var _i = 0; _i < this.assets.Length; _i++)
if (this.assets[_i].name == name)
return true;
throw false;
return false;
}
}
}

0 comments on commit f6fc5d1

Please sign in to comment.