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 2285d45 commit 7d1690eCopy full SHA for 7d1690e
Runtime/EntityComponent.cs
@@ -78,11 +78,12 @@ public Vector3 localScale {
78
/// <returns>The system.</returns>
79
/// <exception cref="System.Exception"></exception>
80
EntitySystemType GetSystem () {
81
+ if (system != null) {
82
+ return system;
83
+ }
84
if (Controller.Instance == null) {
85
throw new System.Exception ("Tried to access the Controller while non is instantiated");
86
}
- if (system != null)
- return system;
87
if (Controller.Instance.HasSystem<EntitySystemType> ()) {
88
system = Controller.Instance.GetSystem<EntitySystemType> ();
89
return system;
0 commit comments