Browse Source

Added _start() method to gbe.nodes.Node class. It's the complement to _pause()

master
Bryan Miller 6 years ago
parent
commit
78633e3152
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      game/gbe/nodes.py

+ 6
- 0
game/gbe/nodes.py View File

@@ -205,6 +205,12 @@ class Node:
for c in self._NODE_DATA["children"]:
c._pause()

def _start(self):
if hasattr(self, "on_start"):
self.on_start()
for c in self._NODE_DATA["children"]:
c._start()

def _update(self, dt):
if hasattr(self, "on_update"):
self.on_update(dt)

Loading…
Cancel
Save