Godot源码在CSDN中的测试

func _process(delta): 
    if not is_network_master(): # 不要在我们自己的玩家节点上进行攻击!
        if Input.is_action_just_pressed("ui_select"): 
            rpc("damage", id) 
    ... 
func _process(delta): 
    if not is_network_master(): # 不要在我们自己的玩家节点上进行攻击!
        if Input.is_action_just_pressed("ui_select"): 
            rpc("damage", id) 
    ... 
func _process(delta): 
    if not is_network_master(): # 不要在我们自己的玩家节点上进行攻击!
        if Input.is_action_just_pressed("ui_select"): 
            rpc("damage", id) 
    ... 
func _process(delta): 
    if not is_network_master(): # 不要在我们自己的玩家节点上进行攻击!
        if Input.is_action_just_pressed("ui_select"): 
            rpc("damage", id) 
    ... 
func _process(delta): 
    if not is_network_master(): # 不要在我们自己的玩家节点上进行攻击!
        if Input.is_action_just_pressed("ui_select"): 
            rpc("damage", id) 
    ... 
func _process(delta): 
    if not is_network_master(): # 不要在我们自己的玩家节点上进行攻击!
        if Input.is_action_just_pressed("ui_select"): 
            rpc("damage", id) 
    ... 
func _process(delta): 
    if not is_network_master(): # 不要在我们自己的玩家节点上进行攻击!
        if Input.is_action_just_pressed("ui_select"): 
            rpc("damage", id) 
    ... 
func _process(delta): 
    if not is_network_master(): # 不要在我们自己的玩家节点上进行攻击!
        if Input.is_action_just_pressed("ui_select"): 
            rpc("damage", id) 
    ... 
func _process(delta): 
    if not is_network_master(): # 不要在我们自己的玩家节点上进行攻击!
        if Input.is_action_just_pressed("ui_select"): 
            rpc("damage", id) 
    ... 
func _process(delta): 
    if not is_network_master(): # 不要在我们自己的玩家节点上进行攻击!
        if Input.is_action_just_pressed("ui_select"): 
            rpc("damage", id) 
    ... 
#sad挥洒的痕迹sad
func _process(delta): 
    if not is_network_master(): # 不要在我们自己的玩家节点上进行攻击!
        if Input.is_action_just_pressed("ui_select"): 
            rpc("damage", id) 
    ... 

猜你喜欢

转载自blog.csdn.net/graypigen1990/article/details/123513615
今日推荐