This project briefly shows how the Morpeh ECS works.
First-person view, the hero is moving forward, has a movement speed, and can deviate left or right if the player holds the mouse button.
When you press the SPACE, a shooting event is triggered through Morpeh.Events.
Shooting is accompanied by VFX, SFX, Animation.
There are a few objects: rifle and bullets. Each object has Components, Providers, and Systems.
In addition, a bullet has Initializer and EventBulletTrigger (IEventData).
Scene GameObjects are connected to the ECS via providers (ProviderSpeed, ProviderTransform, etc.):
Rifle:
Bullet:
Input:
You can learn more by downloading and running the project in Unity (2023.2.17f1).
More projects https://playstel.com/