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); }
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(); } }