Exemplo n.º 1
0
    public static F3Drawcall Create(F3Panel panel, Material material, Texture txt, Shader sdr)
    {
        F3Drawcall f3Drawcall = Create();

        f3Drawcall.panel     = panel;
        f3Drawcall.mMaterial = material;
        f3Drawcall.mTexture  = txt;
        f3Drawcall.mShader   = sdr;
        return(f3Drawcall);
    }
Exemplo n.º 2
0
 private void OnEnable()
 {
     panel = this.transform.GetComponentInParent <F3Panel>();
     panel.AddChild(this);
 }