Basic Networking done
This commit is contained in:
30
Assets/Mirror/Examples/Room/Scripts/NetworkRoomPlayerExt.cs
Normal file
30
Assets/Mirror/Examples/Room/Scripts/NetworkRoomPlayerExt.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Mirror.Examples.NetworkRoom
|
||||
{
|
||||
[AddComponentMenu("")]
|
||||
public class NetworkRoomPlayerExt : NetworkRoomPlayer
|
||||
{
|
||||
public override void OnStartClient()
|
||||
{
|
||||
// Debug.LogFormat(LogType.Log, "OnStartClient {0}", SceneManager.GetActiveScene().path);
|
||||
|
||||
base.OnStartClient();
|
||||
}
|
||||
|
||||
public override void OnClientEnterRoom()
|
||||
{
|
||||
// Debug.LogFormat(LogType.Log, "OnClientEnterRoom {0}", SceneManager.GetActiveScene().path);
|
||||
}
|
||||
|
||||
public override void OnClientExitRoom()
|
||||
{
|
||||
// Debug.LogFormat(LogType.Log, "OnClientExitRoom {0}", SceneManager.GetActiveScene().path);
|
||||
}
|
||||
|
||||
public override void ReadyStateChanged(bool oldReadyState, bool newReadyState)
|
||||
{
|
||||
// Debug.LogFormat(LogType.Log, "ReadyStateChanged {0}", newReadyState);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user