retirando if desnecessário

parent e6b73d27
......@@ -17,9 +17,8 @@ func _create_player():
var vector = Vector2(rand_range(50, 961), rand_range(50, 571))
var GrabbedInstance = PLAYER.instance()
if numPlayer < MAX_PLAYER:
player_pos = get_child(numPlayer).position
player_rot = get_child(numPlayer).get_rotation()
player_pos = get_child(numPlayer).position
player_rot = get_child(numPlayer).get_rotation()
GrabbedInstance.position = player_pos
GrabbedInstance.set_rotation(player_rot)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment