예제 #1
0
파일: s.cs 프로젝트: hackerlank/XLand
    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);
        }
    }
예제 #2
0
 internal virtual void SendUserData(UserDataProto _proto)
 {
 }
예제 #3
0
 internal override void SendUserData(UserDataProto _proto)
 {
     SendData(userData.GetAllData());
 }