예제 #1
0
 // 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!");
 }
예제 #2
0
 void Start()
 {
     m_Connection         = WarlockServerManager.Connection;
     m_Connection.onData += OnDataReceived;
 }