jeffcampbellmakesgames / Entitas-Redux

An entity-component framework for Unity with code generation and visual debugging
MIT License
102 stars 13 forks source link

[FEATURE REQUEST] The ability to remove System from Systems. #70

Open ta-david-yu opened 1 year ago

ta-david-yu commented 1 year ago

Is your feature request related to a problem? Please describe. The game I am trying to make is a party game. Each match will have at least 3 game flow states:

  1. Intro/Countdown: Players are spawned at their initial locations but cannot move while the game is counting down a timer before the game starts.
  2. Playing: Actual game state.
  3. Ending: Play a short cutscene to show the winners.

Each state uses different systems, therefore I want to remove/add systems based on the current state. Note that It is possible to remove system from systems in the original Entitas but not in Redux.

Describe the solution you'd like Add a Remove(ISystem system) function in the Systems class, like how it's done in the original Entitas Systems.

Describe alternatives you've considered The solution mentioned should be the best, so no other alternatives.