// Use this for initialization void Awake() { Configuration = m_Configuration; m_Connection = new DarkRiftConnection(); m_Connection.workInBackground = m_Configuration.NetworkingAsync; m_Connection.Connect(m_Configuration.ServerIP, m_Configuration.ServerPort); Debug.Log("Connected to Server!"); }
void Start() { m_Connection = WarlockServerManager.Connection; m_Connection.onData += OnDataReceived; }