【发布时间】:2021-04-06 23:03:35
【问题描述】:
我需要实施每1分钟从用户那里扣钱。
我会这样做Player.gd
var game_started = false
var time_start = 0
var time_now = 0
func _process(delta):
if game_started == true:
//deduct_one_coin_every_one_minute(uid)
func start(pos):
print("clicked start the game");
time_start = OS.get_unix_time()
set_process(true)
game_started = true
如何调用或执行函数deduct_one_coin_every_one_minute(uid)
【问题讨论】: