架构大更
This commit is contained in:
@@ -1,35 +1,35 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using System.Collections;
|
||||
|
||||
namespace UMod.Example
|
||||
{
|
||||
public class UIModElement : MonoBehaviour
|
||||
{
|
||||
// Events
|
||||
public Action<UIModElement> OnClicked;
|
||||
|
||||
// Public
|
||||
public Text nameText;
|
||||
public Text versionText;
|
||||
|
||||
public Text pathText;
|
||||
|
||||
// Events
|
||||
public Action<UIModElement> OnClicked;
|
||||
|
||||
// Properties
|
||||
public string Name
|
||||
{
|
||||
get { return nameText.text; }
|
||||
set { nameText.text = value; }
|
||||
get => nameText.text;
|
||||
set => nameText.text = value;
|
||||
}
|
||||
|
||||
public string Version
|
||||
{
|
||||
set { versionText.text = value; }
|
||||
set => versionText.text = value;
|
||||
}
|
||||
|
||||
public string Path
|
||||
{
|
||||
set { pathText.text = value; }
|
||||
set => pathText.text = value;
|
||||
}
|
||||
|
||||
// Methods
|
||||
@@ -39,4 +39,4 @@ namespace UMod.Example
|
||||
OnClicked(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user