Exemplo n.º 1
0
    public static UDPBroadCast CreateUDPBroadcastManager(int port)
    {
        if (_instance != null)
            return _instance;

        GameObject go = new GameObject ("UDPBroadcastManager");
        _instance = go.AddComponent<UDPBroadCast> ();
        _instance.Init (port);
        return _instance;
    }
Exemplo n.º 2
0
    public static UDPBroadCast CreateUDPBroadcastManager(int port)
    {
        if (_instance != null)
        {
            return(_instance);
        }

        GameObject go = new GameObject("UDPBroadcastManager");

        _instance = go.AddComponent <UDPBroadCast> ();
        _instance.Init(port);
        return(_instance);
    }