Question by
lloladin · Sep 24, 2015 at 07:49 AM ·
c#unity 5networking
Unity Networking API Public functions
so im lost on how to call the functions in the unity NetWorkLobbyManager i found this by peeking into the code
using UnityEngine;
using System.Collections;
using UnityEngine.Networking;
public class NetWorkLobbyManager : NetworkLobbyManager
{
public virtual void OnLobbyClientEnter()
{
Debug.Log("A player has joined the lobby");
}
}
but since it dosent do anything im pretty much lost on how to call the Networking OnSomething Functions any help is greatly apreciated
Comment
Best Answer
Answer by lloladin · Sep 24, 2015 at 08:23 AM
found this while looking at random questions :D public override void OnLobbyClientEnter() { StartScreen.gameObject.SetActive(false); lobbyPlayerParrent.gameObject.SetActive(true); } apparently i have to use Override instead of virtual Source http://answers.unity3d.com/questions/1040297/onclientconnect-isnt-called-in-networkmanager.html
Your answer
![](https://koobas.hobune.stream/wayback/20220612034849im_/https://answers.unity.com/themes/thub/images/avi.jpg)