UNET Custom Network Manager Error

I’m following this tutorial on making a Custom Network Manager:

I followed line by line and it gives me an error for every instance of NetworkManager.singleton

Here’s my full code:

public class NetworkManager_Custom : NetworkManager {

    void Start()
    {

    }
    public void StartupHost()
    {
        SetPort();
        NetworkManager.singleton.StartHost();
    }

    public void JoinGame()
    {
        SetIPAddress();
        SetPort();
        NetworkManager.singleton.StartClient();
    }

    void SetIPAddress()
    {
        string ipAddress = GameObject.Find("InputFieldIPAddress").transform.FindChild("Text").GetComponent<Text>().text;
       NetworkManager.singleton.networkAddress = ipAddress;
    }
    void SetPort()
    {
       NetworkManager.singleton.networkPort = 4444;
    }
}

Any ideas on why it’s giving me this error? I am using all necessary directives, so it can’t be that.

Same here, try this way UnityEngine.Networking.NetworkManager.singleton.