/Unity_ActiveStateManager

Manage objects active state.

Primary LanguageC#BSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Unity_ActiveStateManager

Manage objects active state.

Import to Your Project

You can import this asset from UnityPackage.

Dependencies

You have to import following assets to use this asset.

How to Use

  1. Add ActiveStateManagerTarget into objects.
  2. Add some key if you need.
  3. 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.