Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        myword  = allWords.Instance;
        myview  = myView.Instance;
        oneword = null;

        /*
         * word AngryWord = new word("Angry", "En colère", "enojado", VersionOfWord.English);
         * word AfterWord = new word("After", "Après", "Después", VersionOfWord.English);
         * word AppleWord = new word("Apple", "Pomme", "manzana", VersionOfWord.English);
         * word AgainWord = new word("Again", "Encore", "De nuevo", VersionOfWord.English);
         * word ALotWord = new word("A Lot", "Beaucoup", "Mucho", VersionOfWord.English);
         *
         * myword.add(AngryWord);
         * myword.add(AfterWord);
         * myword.add(AppleWord);
         * myword.add(AgainWord);
         * myword.add(ALotWord);
         */

        int lengh = addword.Length;

        for (int i = 0; i < lengh; i++)
        {
            addword[i].Setword();
            myword.add(addword[i]);
        }
        myview.setUpItem();
    }
Exemplo n.º 2
0
 private void Awake()
 {
     if (_instance != null && _instance != this)
     {
         Destroy(this.gameObject);
     }
     else
     {
         _instance = this;
     }
 }