Init
This commit is contained in:
40
Assets/ThirdParty/Mirror/Examples/Room/Scripts/NetworkRoomPlayerExt.cs
vendored
Normal file
40
Assets/ThirdParty/Mirror/Examples/Room/Scripts/NetworkRoomPlayerExt.cs
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Mirror.Examples.NetworkRoom
|
||||
{
|
||||
[AddComponentMenu("")]
|
||||
public class NetworkRoomPlayerExt : NetworkRoomPlayer
|
||||
{
|
||||
public override void OnStartClient()
|
||||
{
|
||||
//Debug.Log($"OnStartClient {gameObject}");
|
||||
}
|
||||
|
||||
public override void OnClientEnterRoom()
|
||||
{
|
||||
//Debug.Log($"OnClientEnterRoom {SceneManager.GetActiveScene().path}");
|
||||
}
|
||||
|
||||
public override void OnClientExitRoom()
|
||||
{
|
||||
//Debug.Log($"OnClientExitRoom {SceneManager.GetActiveScene().path}");
|
||||
}
|
||||
|
||||
public override void IndexChanged(int oldIndex, int newIndex)
|
||||
{
|
||||
//Debug.Log($"IndexChanged {newIndex}");
|
||||
}
|
||||
|
||||
public override void ReadyStateChanged(bool oldReadyState, bool newReadyState)
|
||||
{
|
||||
//Debug.Log($"ReadyStateChanged {newReadyState}");
|
||||
}
|
||||
|
||||
#if !UNITY_SERVER
|
||||
public override void OnGUI()
|
||||
{
|
||||
base.OnGUI();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user