Пример #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;
    }
Пример #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;
    }