Commit 6acb641
committed
refactor: Improve message handling in Unity example by parsing JSON data
This commit enhances the message handling logic in the Unity example by parsing incoming messages as JSON. It updates the method checks to use parsed data, improving robustness and error handling. The changes ensure that speed and state updates are processed correctly, providing a more reliable interaction between Flutter and Unity.1 parent 226e478 commit 6acb641
1 file changed
Lines changed: 23 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
537 | 537 | | |
538 | 538 | | |
539 | 539 | | |
540 | | - | |
| 540 | + | |
541 | 541 | | |
542 | | - | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
543 | 552 | | |
544 | 553 | | |
545 | 554 | | |
546 | 555 | | |
547 | 556 | | |
548 | | - | |
| 557 | + | |
549 | 558 | | |
550 | | - | |
551 | | - | |
552 | | - | |
553 | | - | |
554 | | - | |
555 | | - | |
556 | | - | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
557 | 568 | | |
558 | 569 | | |
559 | 570 | | |
560 | | - | |
| 571 | + | |
561 | 572 | | |
562 | 573 | | |
563 | 574 | | |
564 | 575 | | |
565 | 576 | | |
566 | 577 | | |
567 | | - | |
| 578 | + | |
568 | 579 | | |
569 | 580 | | |
570 | 581 | | |
| |||
0 commit comments