Ejemplo n.º 1
0
    public void startLevel()
    {
        GameObject.Find("MainCanvas").GetComponent <MainCanvasSet2>().level3begin = false;

        fps_top.SetActive(true);
        cam.enabled   = true;
        audio.enabled = true;

        spot_light       = GameObject.Find("Room1/SpotLight");
        room2_controller = GameObject.Find("Room2").GetComponent <Room2Controller>();

        pa = GameObject.Find("Room1/PortalA").GetComponent <Room1PortalA>();
        pb = GameObject.Find("Room1/PortalB").GetComponent <Room1PortalB>();
        pc = GameObject.Find("Room1/PortalC").GetComponent <Room1PortalC>();
        pd = GameObject.Find("Room1/PortalD").GetComponent <Room1PortalD>();

        pa.init();
        pb.init();
        pc.init();
        pd.init();

        generateNextStep();
    }
Ejemplo n.º 2
0
 public void init()
 {
     fps = GameObject.Find("Room2/RigidBodyFPSController");
     room2_controller = GameObject.Find("Room2").GetComponent <Room2Controller>();
 }