Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     anim  = GetComponent <Animator>();
     rb    = GetComponent <Rigidbody2D>();
     trans = GetComponent <Transform>();
     // powerRec = GetComponent<powerTCPReceiver>();
     tcp = GetComponent <s_TCP>();
 }
Exemplo n.º 2
0
        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>();
        }
Exemplo n.º 4
0
 // 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
 }