NetworkRoomPlayerExt.cs 904 B

123456789101112131415161718192021222324252627282930
  1. using UnityEngine;
  2. namespace Mirror.Examples.NetworkRoom
  3. {
  4. [AddComponentMenu("")]
  5. public class NetworkRoomPlayerExt : NetworkRoomPlayer
  6. {
  7. public override void OnStartClient()
  8. {
  9. // Debug.LogFormat(LogType.Log, "OnStartClient {0}", SceneManager.GetActiveScene().path);
  10. base.OnStartClient();
  11. }
  12. public override void OnClientEnterRoom()
  13. {
  14. // Debug.LogFormat(LogType.Log, "OnClientEnterRoom {0}", SceneManager.GetActiveScene().path);
  15. }
  16. public override void OnClientExitRoom()
  17. {
  18. // Debug.LogFormat(LogType.Log, "OnClientExitRoom {0}", SceneManager.GetActiveScene().path);
  19. }
  20. public override void ReadyStateChanged(bool oldReadyState, bool newReadyState)
  21. {
  22. // Debug.LogFormat(LogType.Log, "ReadyStateChanged {0}", newReadyState);
  23. }
  24. }
  25. }