Beispiel #1
0
    protected void Start()
    {
        client = new MongoClient(new MongoUrl("mongodb://*****:*****@ds049624.mlab.com:49624/wordriver"));
        server = client.GetServer();
        server.Connect();
        db = server.GetDatabase("wordriver");
        allContextPacks = db.GetCollection <BsonDocument>("contextpacks");
        allWords        = db.GetCollection <BsonDocument>("words");
        allWordPacks    = db.GetCollection <BsonDocument>("wordpacks");

        foreach (BsonDocument item in allWords.FindAll())
        {
            BsonElement name      = item.GetElement("name");
            string      wordValue = name.Value.ToString();
            words.Add(wordValue);
        }
        Readable.Speak("Let's Build a Sentence!");
    }
Beispiel #2
0
 public void OnBeginDrag(PointerEventData eventData)
 {
     Readable.Speak(this.label);
 }
Beispiel #3
0
 public void OnBeginDrag()
 {
     Readable.Speak(this.label);
     Debug.Log("OnBeginDrag of a tile");
 }