Allocating A Relay Lecture - Needing to press the Host button twice

Ive double checked the lecture and all seems to be how it should but when im clicking on the host button i get the usual “No HostSingleton in the scene!” There is one in the scene as ive updated the script

            HostSingelton hostSingelton = Instantiate(hostPrefab);
            hostSingelton.CreateHost();

            ClientSingelton clientSingelton = Instantiate(clientPrefab);
            bool authenticated = await clientSingelton.CreateClient();

If i press the button a second time it now works and brings me into the level. I thought it might be a error just testing it in engine but ive made a build and the issue is still present. im stuck on how to fix this.

Privacy & Terms