// Start is called before the first frame update void Awake() { Net = new NetMgr(); Ghosts = new Dictionary <string, SyncActor>(); Net.Connect("127.0.0.1", 8888); EnterGame(); }
static public int Connect(IntPtr l) { try { NetMgr self = (NetMgr)checkSelf(l); System.String a1; checkType(l, 2, out a1); System.Int32 a2; checkType(l, 3, out a2); self.Connect(a1, a2); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }