Code cleanup.
This commit is contained in:
@@ -21,7 +21,6 @@ namespace Cryville.Crtr.Browsing {
|
||||
Text _title;
|
||||
Text _desc;
|
||||
|
||||
#pragma warning disable IDE0051
|
||||
protected override void Awake() {
|
||||
base.Awake();
|
||||
_placeholder = transform.Find("__placeholder__").gameObject;
|
||||
@@ -39,7 +38,6 @@ namespace Cryville.Crtr.Browsing {
|
||||
Sprite.Destroy(_cover.sprite);
|
||||
}
|
||||
}
|
||||
#pragma warning restore IDE0051
|
||||
public void Load(int id, ChartDetail data) {
|
||||
_id = id;
|
||||
_placeholder.SetActive(false);
|
||||
|
@@ -11,7 +11,6 @@ namespace Cryville.Crtr.Browsing {
|
||||
|
||||
FileDialog _dialog;
|
||||
|
||||
#pragma warning disable IDE0051
|
||||
protected void Start() {
|
||||
PathContainer.LoadItem = LoadPathPart;
|
||||
ItemContainer.LoadItem = LoadItem;
|
||||
@@ -21,7 +20,6 @@ namespace Cryville.Crtr.Browsing {
|
||||
_dialog = GameObject.Instantiate(Resources.Load<GameObject>("Common/FileDialog")).GetComponent<FileDialog>();
|
||||
_dialog.gameObject.SetActive(false);
|
||||
}
|
||||
#pragma warning restore IDE0051
|
||||
|
||||
private bool LoadPathPart(int id, GameObject obj) {
|
||||
var item = ResourceManager.CurrentDirectory[id];
|
||||
|
@@ -3,11 +3,9 @@
|
||||
namespace Cryville.Crtr.Browsing {
|
||||
public abstract class ResourceBrowserUnit : MonoBehaviour {
|
||||
protected ResourceBrowserMaster Master { get; private set; }
|
||||
#pragma warning disable IDE0051
|
||||
protected virtual void Awake() {
|
||||
Master = GetComponentInParent<ResourceBrowserMaster>();
|
||||
}
|
||||
#pragma warning restore IDE0051
|
||||
public virtual void SlideToLeft() { }
|
||||
public virtual void SlideToRight() { }
|
||||
}
|
||||
|
Reference in New Issue
Block a user