Musi byt v tomto static, ak chcem aby mi to nevytvaralo pri 100 instanciach tejto triedy 100 texture?
public class GOLogo: GameObjectSquare
{
static private Texture texture = new Texture("./Video/Logo.png", true);
public GOLogo( GameLayout layout): base(layout)
{
layout.GO_Draw2D.Add(this);
this.position = new Vector3(512, 384, 0);
this.size = new Vector3(512,384,0);
this.rotation = new Vector3(0,0,0);
this.drawconfig = new DrawConfig(texture);
}
}