syt123450 / Three.js-Solar-Exploration

:rocket: Exploration the solar system created by Three.js
http://solar-exploration.com/
MIT License
26 stars 6 forks source link

[Front End] - Refactor Event Handler #86

Closed BoTime closed 6 years ago

BoTime commented 6 years ago

As a developer, I want to have a central management of the event handler, so that I won't be bothered by this event handler in scene controller.

Definition of Done: Refactor the event handler in all "scene" and write out in a utils file.

syt123450 commented 6 years ago

I want to use a "Event Manager" to manage all event in different scene, however, I am not sure whether I can implement in this way, but I will try in this issue.

syt123450 commented 6 years ago

I write a "EventManager" to manage all event add and remove, it will have a same use in all scene, and will become simpler to manage events in different scene.