Updated Twitcher Extended
Added instance static variable so that it can be fetched outside of the normal Node.
This commit is contained in:
parent
580a4725dc
commit
913fa6b190
1 changed files with 6 additions and 0 deletions
|
|
@ -10,6 +10,10 @@ signal _waiting_for_authentication
|
|||
const POLL_TIMEOUT_MS: int = 30000
|
||||
#endregion
|
||||
|
||||
#region Static Exports
|
||||
static var instance: TwitcherExtended
|
||||
#endregion
|
||||
|
||||
#region Exports
|
||||
@export_group("Twitcher Settings")
|
||||
@export var oauth_settings: OAuthSetting = preload("res://addons/twitcher/twitch_oauth_setting.tres")
|
||||
|
|
@ -149,6 +153,8 @@ func _handle_child_exiting(child: Node) -> void:
|
|||
|
||||
#region Godot Overrides
|
||||
func _ready() -> void:
|
||||
if not instance:
|
||||
instance = self
|
||||
_log.d("is ready")
|
||||
_ensure_nodes()
|
||||
# Ensure Settings are properly setup
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue