- Home /
HostListReceived symbol resolve
I am reading a book from Packtpub and it shows:
void OnMasterServerEvent(MasterServerEvent.HostListReceived)
{
loading = false;
}
When I type this method in Visual Studio I get and error based on the HostListReceived. I have looked in the scripting reference and from what I see I havent done anything wrong.
I do have unityengine referenced
Answer by BananaClipStudio · Apr 24, 2014 at 01:50 PM
okay I think I figured it out with more research... there is an error in the edition of the book I was using it seems. Unity Multiplayer Games, Packtpub:
void OnMasterServerEvent( MasterServerEvent msevent )
{
if( msevent == MasterServerEvent.HostListReceived )
{
// received the host list, no longer awaiting results
loading = false;
}
}
Your answer
Follow this Question
Related Questions
error spawning player says I'm not connected when photon connects and puts me in a room 0 Answers
Why are my scripts not opening anymore? 0 Answers
Photon Unity Networking import problem 1 Answer
Can't use any scripts at all (Just installed engine). 0 Answers
Visual Studio pops up when I create a new script, but it does not load it 0 Answers