// -------------------------------------------------------------------------------
        // OnDestroy
        // -------------------------------------------------------------------------------
        void OnDestroy()
        {
            if (networkManager == null)
            {
                return;
            }

            networkManager.eventListeners.OnStartServer.RemoveListener(OnStartServer);
            networkManager.eventListeners.OnStopServer.RemoveListener(OnStopServer);
            networkManager.eventListeners.OnStopClient.RemoveListener(OnStopClient);
            networkManager = null;
        }
        // -------------------------------------------------------------------------------
        // Awake
        // -------------------------------------------------------------------------------
        void Awake()
        {
            singleton = this;

            debug = new DebugHelper();

            if (!GetIsActive)
            {
                return;
            }

            networkManager = FindObjectOfType <LangerNetwork.Network.NetworkManager>();

            networkManager.eventListeners.OnStartServer.AddListener(OnStartServer);
            networkManager.eventListeners.OnStopServer.AddListener(OnStopServer);
            networkManager.eventListeners.OnStopClient.AddListener(OnStopClient);
        }