void Update() { if (Input.GetKeyUp(KeyCode.A)) { UserDataProto ll = new UserDataProto(); SuperSocket.Instance.SendData <UserDataResultProto> (ll, GetData); } else if (Input.GetKeyUp(KeyCode.C)) { TestProto proto = new TestProto(); proto.data = "lklk"; SuperSocket.Instance.SendData <TestProto2>(proto, GetTest); } }
internal virtual void SendUserData(UserDataProto _proto) { }
internal override void SendUserData(UserDataProto _proto) { SendData(userData.GetAllData()); }