Unity-Technologies/com.unity.multiplayer.samples.bitesize

Invaders play error: NullReferenceException: Object reference not set to an instance of an object

yyget opened this issue · 0 comments

yyget commented

Describe the bug
when i click "start internet game" or "join internet game" button,Console show the error
NullReferenceException: Object reference not set to an instance of an object
MenuControl.StartLocalGame () (at Assets/Scripts/MenuControl.cs:19)
var utpTransport = (UnityTransport)NetworkManager.Singleton.NetworkConfig.NetworkTransport;
the project is downlaod from this git,and not edit,could you help me fix it?
To Reproduce
Steps to reproduce the behavior:

  1. open the project invaders ,play
  2. click the button start internet game
  3. See error in Console

Screenshots

image

Environment (please complete the following information):

  • OS: Windows 10
  • Unity Version:2021.3.10f
  • netcode Version: 1.0.2