Esempio n. 1
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();
    }
Esempio n. 2
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);
        }
    }