public void SendSyncInteractionMessage(Interaction interaction)
        {
            var intString = JsonUtility.ToJson(interaction);

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

            message.Send();
        }
        //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();
        }
Ejemplo n.º 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();
        }