Esempio n. 1
0
    void Awake()
    {
        Assert.IsNotNull(composite);
        material = new Material(composite);

        dvp = FindObjectOfType <GLNvDvp>();
        Assert.IsNotNull(dvp);
    }
Esempio n. 2
0
    void Start()
    {
        dvp = FindObjectOfType <GLNvDvp>();
        if (dvp == null)
        {
            Debug.LogError("Could not find dvp object. Disabling dvp UI");
            enabled = false;
            return;
        }

        Invoke("OnReloadUI", 1);
        Invoke("OnResetDropFramesOut", 1);
        Invoke("OnResetDuplicatedFramesOut", 1);
    }