working with level changes and money deposits
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
extends Node
|
||||
|
||||
var game_loaded = false
|
||||
var high_score = 0
|
||||
var money = 0
|
||||
var high_score : int = 0
|
||||
var money : int = 0
|
||||
var health
|
||||
var held_guns = []
|
||||
var current_gun_index
|
||||
@@ -10,9 +10,9 @@ var gun_ammo = {}
|
||||
var ammo_reserve = {}
|
||||
|
||||
func _ready() -> void:
|
||||
SignalBus.money_changed.connect(money_update)
|
||||
SignalBus.money_deposited.connect(deposit_money)
|
||||
|
||||
func money_update():
|
||||
func deposit_money():
|
||||
if money > high_score:
|
||||
high_score = money
|
||||
|
||||
|
||||
Reference in New Issue
Block a user