void Start() { if (m_SSBoxPostNet != null) { WebSocketSimpet webSocketSimpet = m_SSBoxPostNet.m_WebSocketSimpet; if (webSocketSimpet != null) { Debug.Log("add webSocketSimpet event..."); webSocketSimpet.OnEventPlayerLoginBox += OnEventPlayerLoginBox; webSocketSimpet.OnEventPlayerExitBox += OnEventPlayerExitBox; webSocketSimpet.OnEventDirectionAngle += OnEventDirectionAngle; webSocketSimpet.OnEventActionOperation += OnEventActionOperation; } else { Debug.Log("webSocketSimpet is null!"); } AddTVYaoKongBtEvent(); } }