private void PlatformSpecificInitialization() { mColorOperation = ColorOperation.Texture; mBlendOperation = BlendOperation.Regular; // This is needed because SpriteChains may // use particle Sprites which can screw up mVertices[0].TextureCoordinate.X = 0; mVertices[0].TextureCoordinate.Y = 0; mVertices[0].Scale = new Vector2(-1, 1); mVertices[1].TextureCoordinate.X = 1; mVertices[1].TextureCoordinate.Y = 0; mVertices[1].Scale = new Vector2(1, 1); mVertices[2].TextureCoordinate.X = 1; mVertices[2].TextureCoordinate.Y = 1; mVertices[2].Scale = new Vector2(1, -1); mVertices[3].TextureCoordinate.X = 0; mVertices[3].TextureCoordinate.Y = 1; mVertices[3].Scale = new Vector2(-1, -1); CustomBehavior = null; }
public void CopyCustomBehaviorFrom(Sprite spriteToCopyFrom) { if (spriteToCopyFrom.CustomBehavior != null) { this.CustomBehavior = null; CustomBehavior += spriteToCopyFrom.CustomBehavior; } }