示例#1
0
    // Use this for initialization
    void Start()
    {
        canvasCollider = GameObject.Find("Canvas Collider");
        typeWordScript = canvasCollider.GetComponent <TypeWord>();

        li = GameObject.FindWithTag("Life3");

        li1 = GameObject.FindWithTag("Life2");

        li2 = GameObject.FindWithTag("Life1");
    }
示例#2
0
        internal override string Save()
        {
            const char typeParameterSplitter = '©';
            const char partsSplitter         = '¤';

            var wordText = "";

            wordText += ModeWord.Save() + partsSplitter;
            wordText += TypeWord.Save();

            if (!IsLast)
            {
                wordText += typeParameterSplitter;
            }

            return(wordText);
        }
示例#3
0
        public static string TypeToString(TypeWord typeWord)
        {
            switch (typeWord)
            {
            case TypeWord.verb: return("глагол");

            case TypeWord.noun: return("существительное");

            case TypeWord.pronoun: return("местоимение");

            case TypeWord.questions: return("вопросы");

            case TypeWord.participle: return("причастие");

            case TypeWord.prepositions: return("предлоги");

            case TypeWord.Unknown: return("прочие");

            default: return("прочие");
            }
        }
示例#4
0
 public void SpawnTypeWord()
 {
     if (typeWordManager.level == 1)
     {
         for (int n = 0; n < 7; n++)
         {
             TypeWord typeword = new TypeWord(wordGenerator.GetRandomTypeWord1());
             typeWords.Add(typeword);
         }
     }
     else if (typeWordManager.level == 2)
     {
         for (int n = 0; n < 7; n++)
         {
             TypeWord typeword = new TypeWord(wordGenerator.GetRandomTypeWord2());
             typeWords.Add(typeword);
         }
     }
     else if (typeWordManager.level == 3)
     {
         for (int n = 0; n < 7; n++)
         {
             TypeWord typeword = new TypeWord(wordGenerator.GetRandomTypeWord3());
             typeWords.Add(typeword);
         }
     }
     else if (typeWordManager.level == 4)
     {
         for (int n = 0; n < 7; n++)
         {
             TypeWord typeword = new TypeWord(wordGenerator.GetRandomTypeWord4());
             typeWords.Add(typeword);
         }
     }
     else if (typeWordManager.level == 5)
     {
         for (int n = 0; n < 7; n++)
         {
             TypeWord typeword = new TypeWord(wordGenerator.GetRandomTypeWord5());
             typeWords.Add(typeword);
         }
     }
     else if (typeWordManager.level == 6)
     {
         for (int n = 0; n < 7; n++)
         {
             TypeWord typeword = new TypeWord(wordGenerator.GetRandomTypeWord6());
             typeWords.Add(typeword);
         }
     }
     else if (typeWordManager.level == 7)
     {
         for (int n = 0; n < 7; n++)
         {
             TypeWord typeword = new TypeWord(wordGenerator.GetRandomTypeWord7());
             typeWords.Add(typeword);
         }
     }
     else if (typeWordManager.level == 8)
     {
         for (int n = 0; n < 7; n++)
         {
             TypeWord typeword = new TypeWord(wordGenerator.GetRandomTypeWord8());
             typeWords.Add(typeword);
         }
     }
     else if (typeWordManager.level == 9)
     {
         for (int n = 0; n < 7; n++)
         {
             TypeWord typeword = new TypeWord(wordGenerator.GetRandomTypeWord9());
             typeWords.Add(typeword);
         }
     }
     redText    = typeWords[0].typeword;
     whiteText  = typeWords[1].typeword;
     blueText   = typeWords[2].typeword;
     yellowText = typeWords[3].typeword;
     greyText   = typeWords[4].typeword;
     greenText  = typeWords[6].typeword;
 }
示例#5
0
        /// <summary>
        /// Добавляет слово в начале очреди
        /// </summary>
        /// <param name="word">Слово</param>
        /// <param name="type">Тип слова</param>
		public void AddWordBegin(string word, TypeWord type)
		{
			this.words.Insert(0, new TheWord(word, type));
		}
示例#6
0
 internal override void Scan(bool scanNext) => TypeWord.Scan(scanNext);