diff --git a/Runtime/Controller.cs b/Runtime/Controller.cs index 46bc151..68654d7 100644 --- a/Runtime/Controller.cs +++ b/Runtime/Controller.cs @@ -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. @@ -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]; @@ -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; } } }