Пример #1
0
    public static AjNet GetInstance()
    {
        if (ajNet == null)
        {
            ajNet = new AjNet();
        }

        return(ajNet);
    }
Пример #2
0
    void Start()
    {
        conPress = false;

        myUI      = titleUI.GetComponent("UiClient") as UiClient;
        myUI.main = this;

        net         = AjNet.GetInstance();
        net.manager = this;

        accBk = Input.acceleration;

        net.StartClient();
    }
Пример #3
0
    // Use this for initialization
    void Start()
    {
        Application.targetFrameRate = 30;

        userInfo = new ArrayList();

        main           = GetComponent("MainScene") as MainScene;
        main.myAllJoyn = this;

        title = titleUI.GetComponent("UiServer") as UiServer;
        title.connect(false);

        net         = AjNet.GetInstance();
        net.manager = this;

        if (net.StartServer())
        {
            title.ready(true);
        }
        else
        {
            title.ready(false);
        }
    }