public class PlayerMovement : NetworkBehaviour
{
[ClientCallback]
void Update()
{
if (!hasAuthority)
return;
}
}
This code is running only on the client. What is the case of PlayerMovement !hasAuthority?
public class PlayerMovement : NetworkBehaviour
{
[ClientCallback]
void Update()
{
if (!hasAuthority)
return;
}
}
This code is running only on the client. What is the case of PlayerMovement !hasAuthority?
Hi @Lord_of_Dion! Welcome to the community
This runs on the client. For every player on the screen. Your player, as well as the opponent’s player. The code after this line should only run for the player you control (have authority over)
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.