Issues using OnStartServer


I attached the following code to my NetworkLobbyManager object, but it never runs (or at least, never prints that debug log statement). What did I do incorrectly?

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Networking;

public class StartGameScript : NetworkBehaviour

public GameObject controllerPrefab;

public override void OnStartServer()

	GameObject controller = Instantiate(controllerPrefab, controllerPrefab.transform.position, Quaternion.identity);

	Debug.Log("I am running");


bump, still don’t know how to instantiate my game controller upon both players joining in the lobby.