0.2.1
This commit is contained in:
commit
7a08d843a8
|
@ -25,6 +25,12 @@ namespace Syntriax.Modules.State
|
||||||
=> OnEnabledChanged += (state) => enabled = state;
|
=> OnEnabledChanged += (state) => enabled = state;
|
||||||
|
|
||||||
protected void OnEnable() => IsEnabled = true;
|
protected void OnEnable() => IsEnabled = true;
|
||||||
protected void OnDisable() => IsEnabled = false;
|
protected void OnDisable()
|
||||||
|
{
|
||||||
|
IsEnabled = false;
|
||||||
|
|
||||||
|
if (!gameObject.activeInHierarchy) // Just so we can get OnEnable called when the object is back active again in the hierarchy
|
||||||
|
this.enabled = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "com.syntriax.state",
|
"name": "com.syntriax.state",
|
||||||
"version": "0.2.0",
|
"version": "0.2.1",
|
||||||
"displayName": "State Module",
|
"displayName": "State Module",
|
||||||
"unity": "2019.1",
|
"unity": "2019.1",
|
||||||
"documentationUrl": "https://git.syntriax.com/Syntriax/State.git",
|
"documentationUrl": "https://git.syntriax.com/Syntriax/State.git",
|
||||||
|
|
Loading…
Reference in New Issue