// Use this for initialization
 void Start()
 {
     _mySocket = gameObject.GetComponent <socketScript> ();
     _myTCP    = GameObject.Find("NetworkCode").GetComponent <TCPConnection> ();
     gameUI    = GameObject.Find("gameUI");
     preGameUI = GameObject.Find("preGameUI");
 }
 void Awake()
 {
     //add a copy of TCPConnection to this game object
             myTCP = gameObject.AddComponent<TCPConnection> ();
             instance = this;
 }
Esempio n. 3
0
 // Use this for initialization
 void Start()
 {
     _socketScript = gameObject.GetComponent <socketScript> ();
 }