Exemplo n.º 1
0
    public void Awake()
    {
        MeshFilter component = base.GetComponent <MeshFilter>();

        if (component == null)
        {
            Debug.LogError("MeshFilter not found!");
            return;
        }
        this.render          = base.GetComponent <Renderer>();
        component.sharedMesh = SheenBillboard.GetSharedQuad();
        SheenBillboardManager.Register(this);
    }
Exemplo n.º 2
0
 private void OnDestroy()
 {
     try
     {
         if (this.wsToken >= 0)
         {
             WorkScheduler.Unregister(this, this.wsToken);
             this.wsToken = -1;
         }
         SheenBillboardManager.Unregister(this);
     }
     catch
     {
     }
 }
Exemplo n.º 3
0
    public void Awake()
    {
        MeshFilter component = base.GetComponent <MeshFilter>();

        if (component == null)
        {
            Debug.LogError("MeshFilter not found!");
            return;
        }
        this.render          = base.GetComponent <Renderer>();
        component.sharedMesh = SheenBillboard.GetSharedQuad();
        SheenBillboardManager.Register(this);
        if (this.render != null)
        {
            this._vrIconCache = (this.render.sharedMaterial.mainTexture as Texture2D);
        }
    }