private void Awake() { globalVariables = ArticyGlobalVariables.Default; //get the default global variables //subscribe to chapter update delegate to check the current chapter, this just means when the flow player says it's a new chapter, our chapter method will fire flowHandler.chapterUpdate += CompareChapters; }
private void Awake() { //Subscribe to flow updates to check for inventory changes (there's probably a more efficient option) flowPlayer.FlowIsUpdated += UpdateInventory; globalVars = ArticyGlobalVariables.Default; inventory = new Dictionary <string, GameObject>(); }
private void Awake() { GetComponent <ArticyDebugFlowPlayer>().FlowIsUpdated += ConfigureText; globalVars = ArticyGlobalVariables.Default; }