12 lines
244 B
Python
12 lines
244 B
Python
|
class Scene:
|
||
|
def __init__(self):
|
||
|
self.entities = []
|
||
|
|
||
|
def unload(self):
|
||
|
for entity in self.entities:
|
||
|
entity.unregister()
|
||
|
|
||
|
def load(self):
|
||
|
for entity in self.entities:
|
||
|
entity.register()
|