It demonstrates how one can show and hide a character.
For doing so, it created an Entity
(rock), that hides and shows as time passes by.
These things are key in this demo:
- HideSystem that shows and hides an
Entity
(rock)
if rand.Int()%10 == 0 {
e.RenderComponent.Hidden = true
} else {
e.RenderComponent.Hidden = false
}