示例#1
0
        public void Init(ILivingLetterData _data, string text, DropContainer _dropContainer)
        {
            DropContain = _dropContainer;
            Data        = _data;

            LetterLable.font = normalFont;
            LetterLable.text = GenericUtilities.ReverseText(text);
            DrawText.gameObject.SetActive(false);

            AreaState = State.disabled;
        }
示例#2
0
        public void Init(ILivingLetterData _data, DropContainer _dropContainer, bool asImage)
        {
            DropContain = _dropContainer;
            Data        = _data;
            if (asImage && !(_data is LL_LetterData))
            {
                LetterLable.text = string.Empty;
                DrawText.gameObject.SetActive(true);

                DrawText.text = Data.DrawingCharForLivingLetter;
            }
            else
            {
                LetterLable.font = normalFont;
                LetterLable.GetComponent <TextRender>().SetLetterData(Data);
                DrawText.gameObject.SetActive(false);
            }

            AreaState = State.disabled;
        }