push project up sabs assets
This commit is contained in:
17
scenes/individual_parts/balls/balls_multiplayer.gd
Normal file
17
scenes/individual_parts/balls/balls_multiplayer.gd
Normal file
@@ -0,0 +1,17 @@
|
||||
class_name BallsMultiplayer extends BallsBase
|
||||
|
||||
|
||||
func setup_multiplayer() -> void:
|
||||
if not Globals.multiplayer_data.is_multiplayer_active: return
|
||||
|
||||
for ball in bodies.get_children():
|
||||
ball.set_multiplayer_authority(1)
|
||||
Globals.multiplayer_data.set_tracking_of_ball(ball.get_path())
|
||||
|
||||
if multiplayer.is_server(): return
|
||||
|
||||
set_deferred("freeze", true)
|
||||
set_physics_process(false)
|
||||
for ball in bodies.get_children():
|
||||
ball.set_deferred("freeze", true)
|
||||
ball.set_physics_process(false)
|
||||
Reference in New Issue
Block a user