// Use this for initialization void Start() { if (skipLvl2 == true) { GameObject.Find("LevelLoader").GetComponent<LoadLevel>().enabled = false; prepare3 = GameObject.Find("LoadLevel3").GetComponent<Level3Prep>(); prepare3.StartLoading(); level3Load = true; } }
// Use this for initialization void Start() { giantDoor = GameObject.Find("lvl2_Chinese_Gate").GetComponent<Level2CaveDoor>(); prepare3 = GameObject.Find("Level3Loader").GetComponent<Level3Prep>(); prepare3.StartLoading(); }