コード例 #1
0
	public void SetComputer(ComputerConfig newConfig) {

        int terminalIndex = displayManager.terminalCam.targetDisplay;
        int leftCamIndex = displayManager.camClusterDict[displayManager.curComputerConfig].leftCam.targetDisplay;
        int rightCamIndex = displayManager.camClusterDict[displayManager.curComputerConfig].rightCam.targetDisplay;

        displayManager.SetComputer(newConfig);

        displayManager.terminalCam.targetDisplay = terminalIndex;
        displayManager.camClusterDict[displayManager.curComputerConfig].leftCam.targetDisplay = leftCamIndex;
        displayManager.camClusterDict[displayManager.curComputerConfig].rightCam.targetDisplay = rightCamIndex;
    }
コード例 #2
0
        public void SetComputer(ComputerConfig newConfig) {

            //Debug.Log (newConfig);
            if (newConfig == curComputerConfig) { return; }

            //disable the last Cam Cluster we were on
            camClusterDict[curComputerConfig].enabled = false;

            //switch tracking to using the new Cam Cluster
            curComputerConfig = newConfig;

            //Actually enable the new Cam Cluster
            camClusterDict[newConfig].enabled = true;


        }