Пример #1
0
 protected YellNode Yell(GameObject talkObject, FluentString fluentString)
 {
     return(new YellNode(gameObject)
     {
         TalkingObject = talkObject, Text = fluentString, SecondsToPause = YellNode.DefaultSecondsToPause
     });
 }
        public override string StringInEditor()
        {
            string yeller = null;

            if (TalkingObject != null)
            {
                yeller = TalkingObject.name;
            }
            else
            {
                yeller = "This";
            }

            if (!string.IsNullOrEmpty(yeller))
            {
                return("<b>Yell <color=#ffffffff>[" + yeller + "]</color>: </b>" + FluentString.Join("+", Sentences));
            }

            return("<b>Yell: </b>" + FluentString.Join("+", Sentences));
        }
Пример #3
0
 protected WriteNode Write(Text textUIElement, float secondsToPause, FluentString fluentString)
 {
     return(new WriteNode(gameObject, textUIElement, secondsToPause, fluentString));
 }
Пример #4
0
 protected WriteNode Write(Text textUIElement, FluentString fluentString)
 {
     return(new WriteNode(gameObject, textUIElement, WriteNode.DefaultSecondsToPause, fluentString));
 }
Пример #5
0
 protected WriteNode Write(FluentString fluentString)
 {
     return(new WriteNode(gameObject, WriteNode.DefaultSecondsToPause, fluentString));
 }
Пример #6
0
 public WriteNode(GameObject gameObject, Text textUIElement, float secondsToPause, FluentString fluentString)
     : this(gameObject, secondsToPause, fluentString)
 {
     TextUIElement = textUIElement;
 }
Пример #7
0
 public WriteNode(GameObject gameObject, float secondsToPause, FluentString fluentString)
     : base(gameObject)
 {
     SecondsToPause = secondsToPause;
     Text           = fluentString;
 }
Пример #8
0
 public YellNode(GameObject gameObject, float secondsToPause, FluentString fluentString)
     : base(gameObject)
 {
     Text           = fluentString;
     SecondsToPause = secondsToPause;
 }
Пример #9
0
 public YellNode(GameObject gameObject, FluentString text)
     : base(gameObject)
 {
     Text = text;
 }
Пример #10
0
 protected YellNode Yell(float secondsToPause, FluentString fluentString)
 {
     return(new YellNode(gameObject, secondsToPause, fluentString));
 }
Пример #11
0
 protected YellNode Yell(FluentString fluentString)
 {
     return(new YellNode(gameObject, fluentString));
 }
Пример #12
0
 public OptionNode Text(FluentString fluentString)
 {
     OptionText = fluentString;
     return(this);
 }
Пример #13
0
 public OptionNode Text(string text)
 {
     this.OptionText = text;
     return(this);
 }
Пример #14
0
 public OptionNode Option(FluentString optionText)
 {
     return(new OptionNode(gameObject).Text(optionText));
 }