42 lines
841 B
GDScript
42 lines
841 B
GDScript
extends Node
|
|
|
|
var game_is_paused:bool = false
|
|
var is_in_game:bool = false # testweiße
|
|
var game_scene: GameScene
|
|
var is_tutorial_active:bool = false
|
|
|
|
signal change_social_score(amount:int)
|
|
signal change_customer_count
|
|
|
|
|
|
var social_score: int = 45:
|
|
set(value):
|
|
social_score = value
|
|
change_social_score.emit(social_score)
|
|
|
|
var serverd_customers:int = 0:
|
|
set(value):
|
|
serverd_customers = value
|
|
change_customer_count.emit()
|
|
|
|
|
|
var max_customers_per_round:int
|
|
|
|
func get_social_score()->int:
|
|
return social_score
|
|
|
|
func add_social_core(value:int)->void:
|
|
social_score += value
|
|
|
|
func reduce_social_core(value:int)->void:
|
|
social_score -= value
|
|
|
|
func set_round_customer(value:int)->void:
|
|
max_customers_per_round = value
|
|
|
|
func add_served_customer()->void:
|
|
serverd_customers += 1
|
|
|
|
func get_served_customer()->int:
|
|
return serverd_customers
|