コード例 #1
0
        public void SendSyncInteractionMessage(Interaction interaction)
        {
            var intString = JsonUtility.ToJson(interaction);

            var message = new KomodoMessage("interaction", intString);

            message.Send();
        }
コード例 #2
0
        //TODO(Brandon): Suggestion: rename this to PositionUpdate
        public void SendSyncPoseMessage(Position pos)
        {
            var posString = JsonUtility.ToJson(pos);

            var message = new KomodoMessage("sync", posString);

            message.Send();
        }
コード例 #3
0
        public void SendStrokeNetworkUpdate(int sID, Entity_Type entityType, float lineWidth = 1, Vector3 curPos = default, Vector4 color = default)
        {
            var drawUpdate = new Draw((int)NetworkUpdateHandler.Instance.client_id, sID
                                      , (int)entityType, lineWidth, curPos,
                                      color);

            var drawSer = JsonUtility.ToJson(drawUpdate);

            KomodoMessage komodoMessage = new KomodoMessage("draw", drawSer);

            komodoMessage.Send();
        }