UnityEngine.Networking.NetworkConnection.CheckChannel C# (CSharp) Méthode

CheckChannel() private méthode

private CheckChannel ( int channelId ) : bool
channelId int
Résultat bool
        private bool CheckChannel(int channelId)
        {
            if (this.m_Channels == null)
            {
                if (LogFilter.logWarn)
                {
                    Debug.LogWarning("Channels not initialized sending on id '" + channelId);
                }
                return false;
            }
            if ((channelId < 0) || (channelId >= this.m_Channels.Length))
            {
                if (LogFilter.logError)
                {
                    Debug.LogError(string.Concat(new object[] { "Invalid channel when sending buffered data, '", channelId, "'. Current channel count is ", this.m_Channels.Length }));
                }
                return false;
            }
            return true;
        }