Пример #1
0
 void Start()
 {
     m_Actor  = new CActor();
     m_Client = new Net.Tcp.TcpClient(m_Actor);
     m_Client.Start();
     Tools.GetComponent <Tools>().SendJoinGameReq();
     DontDestroyOnLoad(gameObject);
 }
Пример #2
0
 void Awake()
 {
     m_Actor  = new CActor();
     m_Client = new Net.Tcp.TcpClient(m_Actor);
     m_Client.Start();
 }