// Use this for initialization void Start() { anim = GetComponent <Animator>(); rb = GetComponent <Rigidbody2D>(); trans = GetComponent <Transform>(); // powerRec = GetComponent<powerTCPReceiver>(); tcp = GetComponent <s_TCP>(); }
public FriendEngineComm() { mainThread = new s_TCP(); responseThread = new s_TCP(); actualState = 0; actualCommState = 0; actualStepState = 0; actualPhase = 0; pairs = new List <configurationPair>(); }
public FriendEngineComm() { mainThread = new s_TCP(); responseThread = new s_TCP(); actualState = 0; actualCommState = 0; actualStepState = 0; actualPhase = 0; pairs = new List<configurationPair>(); }
// Use this for initialization void Start() { myTCP = gameObject.AddComponent<s_TCP> (); //new s_TCP(); myTCP.setupSocket(); Debug.Log (myTCP.socketReady); myTCP.writeSocket("get me started");//request data }