<reponame>Luminnem/Facesmash<gh_stars>0
class StatesManager(object):
	def __init__(self):
		self.current = 0
		self.states = []
		
	def update(self):
		if len(self.states) > 0:
			self.states[self.current].update()
		
	def render(self, screen):
		if len(self.states) > 0:
			self.states[self.current].render(screen)

class StatesManager(object):
	def __init__(self):
		self.current = 0
		self.states = []
		
	def update(self):
		if len(self.states) > 0:
			self.states[self.current].update()
		
	def render(self, screen):
		if len(self.states) > 0:
			self.states[self.current].render(screen)