Ejemplo n.º 1
0
    public UnstCInfo(Color color, FontStyle fontStyle, Font font, UnstableObject unstableObject, int fontSize)
    {
        this.color     = color;
        this.fontStyle = fontStyle;
        this.font      = font;
        this.fontSize  = fontSize;

        rotation  = unstableObject.Rotation;
        vibration = unstableObject.Vibration;
        waitFrame = unstableObject.WaitFrame;

        unstableStyle = unstableObject.STYLE;
    }
Ejemplo n.º 2
0
    private void Create()
    {
        UnstableText unstableText = Unst.RegisterTextObject(mName, mCanvas, mPosition);

        UnstCInfo unstCInfo
            = new UnstCInfo(mColor, mFontStyle, mFont, new UnstableObject(mWaitFrame, mRotation, mVibration, mUnstable), mFontSize);

        unstableText.Setting(mMessage, mLetterSpacing, 0f);
        unstableText.Setting(unstCInfo);

        for (int i = 0; i < mMessage.Length; i++)
        {
            UnstableObject createChar = Unst.RegisterCharObject(i, mMessage[i], unstCInfo);

            createChar.transform.parent = unstableText.transform;
            createChar.transform.SetLetterSpace(mMessage.Length, mLetterSpacing, i);
        }
    }