Пример #1
0
        // Use this for initialization
        void Start()
        {
            Application.runInBackground = true;
            #if NO_CLUSTER
            #else
            this.iPadTapped = new icClusterInputBool("iPadTapped");
            #endif

            this.bsonParser = new iPadBSONParser();
            gameObject.renderer.material.color = Color.blue;
            bsonListener = new BSONListener(3338);
        }
Пример #2
0
        // Use this for initialization
        void Start()
        {
            Application.runInBackground = true;
                #if NO_CLUSTER
                #else
            this.iPadTapped = new icClusterInputBool("iPadTapped");
                #endif



            this.bsonParser = new iPadBSONParser();
            gameObject.renderer.material.color = Color.blue;
            bsonListener = new BSONListener(3338);
        }
 // Use this for initialization
 void Start()
 {
     try
     {
         bl = new BSONListener(listenPort);
     }
     catch (SocketException se)
     {
         Debug.Log ("Socket exception - throw error");
         return;
     }
     amnesiaEventHandler = GameObject.Find ("Scripts").GetComponent<Events> ();
     posSender = GetComponent<PositionSender>();
     init = true;
 }
	// Use this for initialization
	void Start () {
		bsonSender = new BSONSender(remoteHost, remotePort);
		bsonObj = new Kernys.Bson.BSONObject();
		dataAdded = false;

		if (positionListener)
		{
			bsonListener = new BSONListener(listenPort);

			Debug.Log ("Sending listener active message");
			Kernys.Bson.BSONObject laMsg = new Kernys.Bson.BSONObject();
			laMsg.Add ("positionListener", "active");
			bsonSender.SendUncompressed (laMsg);
		}

	}
	// Use this for initialization
	void Start () {
	
		Debug.Log ("Starting BSON Pos Listener on " + listenPort);
		bl = new BSONListener(listenPort);
	}