Example #1
0
    //public bool isPlayer2;


    void Start()
    {
        depthViewer = mainCam.GetComponent <CustomDepthImageViewer>();

        if (OverlayObject)
        {
            distanceToCamera = (OverlayObject.transform.position - Camera.main.transform.position).magnitude;
        }
    }
Example #2
0
    void Start()
    {
        if (instance == null)
        {
            instance = this;
        }
        changed = false;
        active  = false;

        depthViewer = mainCam.GetComponent <CustomDepthImageViewer>();
    }