public void ChangeRoom(room target) { if (abandonment) { int rand = Random.Range(0, 2); if (rand == 0) { this.transform.position = target.getWatcherSpawn().transform.position; Debug.Log("Moving Watcher to Location"); currentRoom = target; Candles = currentRoom.getRoomObject().GetComponentsInChildren <CandleScript>(); } else { Mask.transform.position = target.getWatcherSpawn().transform.position; Debug.Log("Moving Mask to Location"); this.transform.position = maskStartPosition.transform.position; currentRoom = target; Candles = null; } } else { this.transform.position = target.getWatcherSpawn().transform.position; currentRoom = target; Candles = currentRoom.getRoomObject().GetComponentsInChildren <CandleScript>(); } }