コード例 #1
0
    void OnGUI()
    {
        if (currentAction == "open door" || currentAction == "plate shelf")
        {
            GUI.Window(4, new Rect(20, 50, 300, 100), mainFunc, "What would you like to do, " + MessageScript.instance.screen_name + "?");
        }

        if (currentAction == "standing plate")
        {
            xrayInterface.showGUIInterface("stand");
            AppController.instance.cameras[currentCam].enabled = true;
            activateSpotLight("upright");
            resetOtherCameras();
        }
        if (currentAction == "x-ray table")
        {
            xrayInterface.showGUIInterface("table");
            arm.collider.enabled = false;
            //userActions.perform(currentAction);
            AppController.instance.cameras[currentCam].enabled = true;
            AppController.instance.toggleRollOvers(false);
            arm.collider.enabled = false;
            activateSpotLight("xRaySpot");
            resetOtherCameras();
        }
        if (currentAction == "console")
        {
            if (!console.isVisible())
            {
                AppController.instance.cameras[currentCam].enabled = true;
                console.showPanel(true);
                activateSpotLight("console");
                resetOtherCameras();
            }
        }
    }
コード例 #2
0
 void OnMouseDown()
 {
     console.showPanel(true);
     AppController.instance.currentLocation = console.gameObject;        //.transform.position;
 }