You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1020 B
40 lines
1020 B
using UnityEngine;
|
|
using UnityEngine.SceneManagement;
|
|
|
|
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}");
|
|
}
|
|
|
|
public override void OnGUI()
|
|
{
|
|
base.OnGUI();
|
|
}
|
|
}
|
|
}
|