ParaNetService.OnPlayerLeft

Declaration

public static void OnPlayerLeft(Action<ParaPlayer> callback)

Parameters

callbackThe registered callback function

Description

The room logout notification of the registered listener role.

ParaNetService.OnPlayerLeft(function(paraPlayer)
  print(string.format("player:%d is left",paraPlayer.playerID));
end);