Ejemplo n.º 1
0
    void Start()
    {
        instance = this;

        if (!scopeOverlay)
        {
            Debug.LogError("Scope overlay not set");
            enabled = false;
            return;
        }

        camera.enabled = false;
        camera.depth = 50;
        camera.orthographic = false;
        camera.nearClipPlane = 0.01f;
        camera.farClipPlane = 1000f;
        scopeOverlay.renderer.enabled = false;
    }
Ejemplo n.º 2
0
    void Start()
    {
        instance = this;

        if (!scopeOverlay)
        {
            Debug.LogError("Scope overlay not set");
            enabled = false;
            return;
        }

        camera.enabled       = false;
        camera.orthographic  = false;
        camera.nearClipPlane = 0.01f;
        camera.farClipPlane  = 1000f;

        scopeOverlay.renderer.enabled = false;
    }