void Start()
 {
     lobbyLoader = GetComponent <LobbyLoader>();
     if (lobbyLoader == null)
     {
         throw new System.Exception("No LobbyLoader assigned");
     }
 }
示例#2
0
 private void Awake()
 {
     //creates the singleton, lives withing the Main menu scene.
     lobbyLoader = this;
 }