// Should be called by StoryManager after all stanzas are loaded. // Attaches swipe handlers so that StorybookEvent ROS messages get sent when stanzas are swiped. public void SetStanzaSwipeHandlers() { for (int i = 0; i < this.stanzas.Count; i++) { Stanza stanza = this.stanzas[i].GetComponent <Stanza>(); string text = stanza.GetStanzaText(); stanza.AddSwipeHandler(this.rosManager.SendStanzaSwipedAction(i, text)); } }