Exemple #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);
    }
Exemple #2
0
    static F3Drawcall Create()
    {
        GameObject obj        = GameObject.Find("drallcall");
        F3Drawcall f3Drawcall = null;

        if (obj == null)
        {
            obj = new GameObject("drallcall");
            DontDestroyOnLoad(obj);
            f3Drawcall = obj.AddComponent <F3Drawcall>();
        }

        return(obj.GetComponent <F3Drawcall>());
    }