void Start() { //Load the xml database logSerializer.Load(Application.persistentDataPath + filePath); //Find all the log items in the on screen database. GetComponentsInChildren <LogItem>(true, foodItemsInChildren); //Ensure that all log items are in the serialized list. logSerializer.CompleteList(foodItemsInChildren); //Go through the list and set the found items to... found. foreach (LogItem item in foodItemsInChildren) { foreach (LogSerializer.SerialLogItem seralizedLogItem in logSerializer.foodItems) { if (item.name == seralizedLogItem.name) { if (seralizedLogItem.IsFound) { item.RevealItem(); } else { item.HideItem(); } if (seralizedLogItem.IsClicked) { item.SetBeenClicked(true); } else { item.SetBeenClicked(false); } } } } if (shouldAddCollectedItems) { RevealCollectedItems(); //Once the items have been revealed, they need to be prepared for the animation by moving them. robotAnimationController.PrepSpitAnimation(); //Do dialogue animation. //dialogueAnimator.SetTrigger("Go_BottomIn"); } logScreenAnimator.SetTrigger("StartAnimation"); }