Ejemplo n.º 1
0
        private void EmitMessage(Dictionary <string, object> data)
        {
            data["message"] = new ObservableText($@"[0] {message}",
                                                 new Tuple <GameObject, string>(self, "name upper")
                                                 );
            TimelineManager.instance.OnAction(data);

            TimelineManager.instance.RegisterEvent(EmitMessage, data, interval);
        }
Ejemplo n.º 2
0
        protected void OnObservedActionTaken(Dictionary <string, object> data)
        {
            if (data.ContainsKey("message"))
            {
                ObservableText observableText = data["message"] as ObservableText;
                TextBlock      block          = observableText.Observed(observer);
                descriptions.Children.Add(block);
            }

            if (data.ContainsKey("displayAfter") && (bool)data["displayAfter"])
            {
                Display();
            }
        }