Code cleanup.
This commit is contained in:
@@ -58,14 +58,13 @@ namespace Cryville.Crtr.Browsing.UI {
|
||||
}
|
||||
else {
|
||||
m_title.text = "<color=#ff0000>Invalid resource</color>";
|
||||
m_desc.text = string.Empty;
|
||||
m_desc.text = "";
|
||||
}
|
||||
}
|
||||
void DisplayCover(bool succeeded, Texture2D tex) {
|
||||
if (succeeded) {
|
||||
if (!succeeded) return;
|
||||
m_cover.sprite = Sprite.Create(tex, new Rect(0, 0, tex.width, tex.height), Vector2.zero, 160, 0, SpriteMeshType.FullRect);
|
||||
}
|
||||
}
|
||||
public void Clear() {
|
||||
m_placeholder.SetActive(true);
|
||||
m_content.SetActive(false);
|
||||
|
Reference in New Issue
Block a user