void Start() { conPress = false; myUI = titleUI.GetComponent("UiClient") as UiClient; myUI.main = this; net = AjNet.GetInstance(); net.manager = this; accBk = Input.acceleration; net.StartClient(); }
// 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); } }