Manage objects active state.
You can import this asset from UnityPackage.
You have to import following assets to use this asset.
- Add
ActiveStateManagerTarget
into objects. - Add some
key
if you need. - Call some function from
ActiveStateManager
.
ActiveStateManager.Instance.ActivateObjects();
ActiveStateManager.Instance.InactivateObjects();
If you add some keys in ActiveStateManagerTarget, you could control the objects with the key.
ActiveStateManager.Instance.ActivateObjects("Round");
ActiveStateManager.Instance.InactivateObjects("Round");
In this case, "Round"
is key.