MCPcopy
hub / github.com/EngoEngine/engo / Update

Method Update

demos/scenes/scenes.go:163–173  ·  view source on GitHub ↗
(dt float32)

Source from the content-addressed store, hash-verified

161func (*SceneSwitcherSystem) Remove(ecs.BasicEntity) {}
162
163func (s *SceneSwitcherSystem) Update(dt float32) {
164 s.secondsWaited += dt
165 if float64(s.secondsWaited) > s.WaitTime.Seconds() {
166 s.secondsWaited = 0
167
168 // Change the world to s.NextScene, and don't override / force World re-creation
169 engo.SetSceneByName(s.NextScene, false)
170
171 log.Println("Switched to", s.NextScene)
172 }
173}
174
175type scaleEntity struct {
176 *ecs.BasicEntity

Callers

nothing calls this directly

Calls 1

SetSceneByNameFunction · 0.92

Tested by

no test coverage detected