private IEnumerator StoryLoadResources() { Msg.text = "Loading resources..."; yield return(new WaitForSeconds(0.1f)); extRes.LoadStoryNextPage(1); activityChosen = (int)MainLogging.ActivityType.Story; }
private void SetupNextPage() { //Set the background and mask to the next level (already loaded) background.sprite = extRes.StoryNextImage; mask.sprite = extRes.StoryNextMask; currentSound = extRes.StoryNextSound; mask.gameObject.SetActive(true); #if UNITY_ANDROID && !UNITY_EDITOR Opie.instance().head().set_eye_type(EyeType.NEUTRAL, Opie.Head.instant_action()); Opie.instance().head().set_linked_pose_and_eye_position(0.5f, 0.5f, Opie.Head.transition_action()); #endif // preload the page after in the background and the user is playing with the current // page if (level + 1 <= totalLevels) { resourceLoading = true; startTime = Time.realtimeSinceStartup; extRes.LoadStoryNextPage(level + 1); } }