public SpriteRegister(Texture2D texture, SpriteRenderer renderer, TextureShader shader) : base(texture, renderer, shader) { int index = Rand.Next(texturePosArray.Length); Size = new Vector2(512 * 0.17f, 512 * 0.09f); TexturePostiton = new Vector4(texturePosArray[index].X, texturePosArray[index].Y, 0.17f, 0.09f); }
public Sprite(Texture2D texture, SpriteRenderer renderer, TextureShader shader) { Texture2D = texture; Renderer = renderer; Shader = shader; }