Skip to content

Commit

Permalink
Partially review the UIManager for #15.
Browse files Browse the repository at this point in the history
  • Loading branch information
Makosai committed Apr 9, 2024
1 parent f72ffc4 commit b63953e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions godot/scenes/misc/scripts/managers/ui_manager.gd
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ static var is_ui_open := false
# TODO: Re-enable
# static var player_ui: PlayerUI

enum UI_TYPES { GAME, INVENTORY }

func _init():
if instance == null:
instance = self
else:
self.queue_free()

enum UI_TYPES { GAME, INVENTORY }
queue_free()
free()

static func emit_open_ui(ui: UI_TYPES):
print("open")
Expand Down

0 comments on commit b63953e

Please sign in to comment.