Summary
In this chapter, we explored multiple examples. First, we started with the ObserveVariable()
method and watched only one variable. In the second section, we dynamically responded to ink stories in Unity. Using delegated functions, we learned how parts of a piece of code will only be called when an ink variable changes. In the third section, we looked at the use of the ObserveVariables()
method to watch multiple variables specified by name.
In Chapter 10, Dialogue Systems with ink, we will move away from the individual properties and methods of the Story API and start to combine functionality into more complex use cases. Combining parts of the Unity API introduced in Chapter 7, Unity API – Making Choices and Story Progression, along with the ObserveVariable()
method covered in this chapter, we will examine how to create different dialogue systems.