Пример #1
0
    // Update is called once per frame
    void Update()
    {
        if (!pauseGame.IsResetSet())
        {
            if (Input.inputString.Length > 0 && !pauseGame.IsGamePaused())
            {
                foreach (char i in Input.inputString)
                {
                    if (i.Equals(type [0]) || i.Equals(type [0].ToString().ToUpper() [0]))
                    {
                        typeD.Append(type [0]);
                        type.Remove(0, 1);

                        UpdateTexts();
                    }
                }
            }

//			typeThis.gameObject.SetActive (false);
//			typeDThis.gameObject.SetActive (false);
        }
        else
        {
//			print (pauseGame.IsResetSet ());
            type.Remove(0, type.Length);
            typeD.Remove(0, typeD.Length);
        }

        if (type.Length <= 0 && !pauseGame.IsGamePaused())
        {
            GetNewRandIndex();
        }
    }