private Texture2D texture;//this <<<
public Sprite(Texture2D texture)//parameter name same as declared field
{
//this. use to tell texture from class not parameter
this.texture = texture;
}
more… link
private Texture2D texture;//this <<<
public Sprite(Texture2D texture)//parameter name same as declared field
{
//this. use to tell texture from class not parameter
this.texture = texture;
}
more… link