Added scene system.

This commit is contained in:
Marvin Blum
2016-05-03 22:15:47 +02:00
parent 364d7dd045
commit 74c5bf3505
3 changed files with 110 additions and 1 deletions

View File

@@ -90,6 +90,12 @@ func Stop() {
}
func cleanup() {
// cleanup scenes
for _, scene := range scenes {
scene.Cleanup()
}
// cleanup systems
for _, system := range systems {
system.Cleanup()
}