/// <summary> /// main function to load and unload scenes from 2d, this can be used to load interior environments or continue onto the skiing mountains /// </summary> public void SwitchScene() { if (!locked) { GameManager.managerWasa.Audio.FadRate = 1; StartCoroutine(GameManager.managerWasa.Audio.FadeOut()); GameManager.managerWasa.Audio.PlaySoundEffect("OpenDoor"); manager.SceneSwitchMessage(leaveScene); StartCoroutine(LoadWait(1.4f)); } else { manager.CannotInteract(message); } }
/// <summary> /// this function makes a small paus showing the black screen usually used for the player dead screen in 3d but with different text applied. /// after a short while it returns to normal and unlocks the door it was tied to. /// </summary> public void StayTheNight() { if (interactable) { GameManager.managerWasa.Audio.PlaySoundEffect("StayOverNight"); string message = "So I ended up helping Bengt and his family out for a few days. I must confess that " + "I am not that used to hard labour but I soon learned all about how things is done here. " + "The food has been great although simple in comparison with what I am used to. But now my dear readers " + "it was time to continue towards the town of Falun. " + "Maybee I can have a chance convincing the people there about my greatness and that I should be their king."; GameManager.managerWasa.UiHandle.TellStory(message, true); lockedobj.Locked = false; GameManager.managerWasa.Audio.AudioReset = true; } else { manager.CannotInteract("Bengt: Hey what are you doing ? This isn't your home young lad!"); } }