public void LoadTexture(byte[] data) { go.LoadTexture(data); OT.velkost = "Original: " + go.img.texture.width + " x " + go.img.texture.height; if (OT.typ.Equals(GenObjectType.Drag)) { obrPanel.SetupPanel((GeneratedObject)go, OT); } if (OT.typ.Equals(GenObjectType.Click)) { klikaciPanel.SaveTexture(); klikaciPanel.SetupPanel((ClickableObject)go, OT); } }