removed unused threadRunning field
This commit is contained in:
@ -35,7 +35,6 @@ public class UDPAvatarReceiver : MonoBehaviour
|
|||||||
[SerializeField] private bool showDebugInfo = false;
|
[SerializeField] private bool showDebugInfo = false;
|
||||||
[SerializeField] private bool logReceivedPackets = false;
|
[SerializeField] private bool logReceivedPackets = false;
|
||||||
|
|
||||||
private bool threadRunning = false;
|
|
||||||
private int listenPort;
|
private int listenPort;
|
||||||
private Dictionary<string, Transform> boneCache;
|
private Dictionary<string, Transform> boneCache;
|
||||||
private List<Transform> allBones; // For full data mode
|
private List<Transform> allBones; // For full data mode
|
||||||
@ -210,7 +209,6 @@ public class UDPAvatarReceiver : MonoBehaviour
|
|||||||
|
|
||||||
// Subscribe to shared listener
|
// Subscribe to shared listener
|
||||||
Convai.Scripts.Runtime.Multiplayer.SharedUDPListener.Instance.OnPacketReceived += HandlePacketReceived;
|
Convai.Scripts.Runtime.Multiplayer.SharedUDPListener.Instance.OnPacketReceived += HandlePacketReceived;
|
||||||
threadRunning = true;
|
|
||||||
|
|
||||||
if (showDebugInfo)
|
if (showDebugInfo)
|
||||||
Debug.Log($"UDP Avatar Receiver subscribed to shared listener on port {listenPort} (filtering avatar magic 0x{AVATAR_MAGIC:X})");
|
Debug.Log($"UDP Avatar Receiver subscribed to shared listener on port {listenPort} (filtering avatar magic 0x{AVATAR_MAGIC:X})");
|
||||||
@ -552,8 +550,6 @@ public class UDPAvatarReceiver : MonoBehaviour
|
|||||||
|
|
||||||
void StopUDPListener()
|
void StopUDPListener()
|
||||||
{
|
{
|
||||||
threadRunning = false;
|
|
||||||
|
|
||||||
// Unsubscribe from shared listener
|
// Unsubscribe from shared listener
|
||||||
if (Convai.Scripts.Runtime.Multiplayer.SharedUDPListener.Instance != null)
|
if (Convai.Scripts.Runtime.Multiplayer.SharedUDPListener.Instance != null)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -38,7 +38,6 @@ public class UDPAvatarReceiverAgent : MonoBehaviour
|
|||||||
[SerializeField] private bool showDebugInfo = false;
|
[SerializeField] private bool showDebugInfo = false;
|
||||||
[SerializeField] private bool logReceivedPackets = false;
|
[SerializeField] private bool logReceivedPackets = false;
|
||||||
|
|
||||||
private bool threadRunning = false;
|
|
||||||
private int listenPort;
|
private int listenPort;
|
||||||
private Dictionary<string, Transform> boneCache;
|
private Dictionary<string, Transform> boneCache;
|
||||||
private List<Transform> allBones; // For full data mode
|
private List<Transform> allBones; // For full data mode
|
||||||
@ -213,7 +212,6 @@ public class UDPAvatarReceiverAgent : MonoBehaviour
|
|||||||
|
|
||||||
// Subscribe to shared listener
|
// Subscribe to shared listener
|
||||||
Convai.Scripts.Runtime.Multiplayer.SharedUDPListener.Instance.OnPacketReceived += HandlePacketReceived;
|
Convai.Scripts.Runtime.Multiplayer.SharedUDPListener.Instance.OnPacketReceived += HandlePacketReceived;
|
||||||
threadRunning = true;
|
|
||||||
|
|
||||||
if (showDebugInfo)
|
if (showDebugInfo)
|
||||||
Debug.Log($"UDP Avatar Receiver Agent subscribed to shared listener on port {listenPort} (filtering avatar magic 0x{AVATAR_MAGIC:X})");
|
Debug.Log($"UDP Avatar Receiver Agent subscribed to shared listener on port {listenPort} (filtering avatar magic 0x{AVATAR_MAGIC:X})");
|
||||||
@ -555,8 +553,6 @@ public class UDPAvatarReceiverAgent : MonoBehaviour
|
|||||||
|
|
||||||
void StopUDPListener()
|
void StopUDPListener()
|
||||||
{
|
{
|
||||||
threadRunning = false;
|
|
||||||
|
|
||||||
// Unsubscribe from shared listener
|
// Unsubscribe from shared listener
|
||||||
if (Convai.Scripts.Runtime.Multiplayer.SharedUDPListener.Instance != null)
|
if (Convai.Scripts.Runtime.Multiplayer.SharedUDPListener.Instance != null)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user