Sprite.Sprite C# (CSharp) 메소드

Sprite() 공개 메소드

public Sprite ( Texture texture, float textureWidth, float textureHeight ) : System.Collections
texture Texture
textureWidth float
textureHeight float
리턴 System.Collections
    public Sprite(Texture texture, float textureWidth,float textureHeight)
    {
        _texture	= texture;
        _originalWidth	= textureWidth;
        _originalHeight	= textureHeight;
        _width			= textureWidth;
        _height			= textureHeight;
        _textureSelfRect.width = textureWidth;
        _textureSelfRect.height= textureHeight;
    }

Same methods

Sprite::Sprite ( ) : System.Collections
Sprite::Sprite ( Texture texture ) : System.Collections