📜  意外的令牌 godot - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:35.450000             🧑  作者: Mango

代码示例1
# If when you type a variable, for example:
var health : int = 50
health == 50 
# and an error saying 'Unexpected token' is shown it is because the variable needs to be inside a function.
# for example:
var health : int = 50
func check_health():
    health == 50