예제 #1
0
    public StaticTextBehaviour(List <string> linesOfText, TextInit textSetting,
                               TextMeshProUGUI textField, Image textfieldBackGround, ExtraTextSettings extraTextSettings,
                               float timer, Vector2 position)
    {
        this.linesOfText         = new List <string>(linesOfText);
        this.textSetting         = textSetting;
        this.textField           = textField;
        this.textfieldBackGround = textfieldBackGround;
        this.position            = position;
        this.timer             = timer;
        this.extraTextSettings = extraTextSettings;

        leafManipulators = new List <LeafManipulator>();
        leafManipulators.Add(new FadeIn());
        leafManipulators.Add(new FadeOut());
        leafManipulators.Add(new FlyIn(
                                 //new Vector2(position.x - 1000.0f, position.y),
                                 position,
                                 1.0f));
        leafManipulators.Add(new FlyOut(
                                 position,
                                 //new Vector2(position.x - 1000.0f, position.y),
                                 1.0f));
        foreach (LeafManipulator manipulator in leafManipulators)
        {
            manipulator.init();
        }
        manipulatorsDone = false;
    }
예제 #2
0
 public StaticTextBehaviour(List <string> linesOfText, TextInit textSetting,
                            TextMeshProUGUI textField, Image textfieldBackGround,
                            float timer, Vector2 position) : this(linesOfText, textSetting,
                                                                  textField, textfieldBackGround, new ExtraTextSettings(),
                                                                  timer, position)
 {
 }