// Use this for initialization void Start() { //Debug.Log("Event script for room 4 initialized!"); exitDoor = GameObject.FindWithTag("Exit_R4").GetComponent <door_script>(); entryDoor = GameObject.FindWithTag("Entry_R4").GetComponent <door_script>(); player = GameObject.FindObjectOfType(typeof(player_script)) as player_script; nextEventScript = GameObject.FindObjectOfType(typeof(event_script_R5)) as event_script_R5; dialogManager = GameObject.FindObjectOfType(typeof(dialog_script)) as dialog_script; mud = GameObject.FindObjectOfType(typeof(mud_script)) as mud_script; mudSwitch = GameObject.FindObjectOfType(typeof(switch_script)) as switch_script; colliderE = GameObject.Find("Collider [R4] Lightning").GetComponent <PolygonCollider2D> (); defaultPlayerSpeed = player.getSpeed(); mud.drain(); audio = GameObject.Find("EventManager_R4"); }