Пример #1
0
        private static void ConvertLetterTile(LetterProp lp)
        {
            byte changeletter = lp.letter;

            for (int i = gridsize - 1; i >= 0; i--)
            {
                for (int j = gridsize - 1; j >= 0; j--)
                {
                    if (LetterPropGrid[i, j].letter == changeletter)
                    {
                        LetterPropGrid[i, j].letter = EngLetterScoring.GetRandomLetter(false, GetFortune());
                    }
                }
            }
        }
Пример #2
0
        public LetterProp(int level, bool levelup, int _i, int _j, Transform _tf)
        {
            tt = CreateNewTile(level, levelup);
            Tf = _tf;

            LetterAnimator = Tf.GetChild(0).gameObject.GetComponent <Animator>();

            tileScript = (Tile)Tf.GetChild(0).gameObject.GetComponent(typeof(Tile));

            tileScript.SetPos(I, J, this);

            letter = EngLetterScoring.GetRandomLetter(IsBurning(), WSGameState.GetFortune());

            I = _i;
            J = _j;

            UpdateLetterDisplay();
            UpdateMaterial();
        }