Copy Aetheria Code
Added a bunch of code from the old Aetheria project
This commit is contained in:
parent
ab392cd3d6
commit
c58ba0b1da
1704 changed files with 175081 additions and 313 deletions
|
|
@ -0,0 +1,30 @@
|
|||
/// Credit playemgames
|
||||
/// Sourced from - http://forum.unity3d.com/threads/sprite-icons-with-text-e-g-emoticons.265927/
|
||||
|
||||
namespace UnityEngine.UI.Extensions.Examples
|
||||
{
|
||||
public class testHref : MonoBehaviour
|
||||
{
|
||||
public TextPic textPic;
|
||||
|
||||
void Awake()
|
||||
{
|
||||
textPic = GetComponent<TextPic>();
|
||||
}
|
||||
|
||||
void OnEnable()
|
||||
{
|
||||
textPic.onHrefClick.AddListener(OnHrefClick);
|
||||
}
|
||||
|
||||
void OnDisable()
|
||||
{
|
||||
textPic.onHrefClick.RemoveListener(OnHrefClick);
|
||||
}
|
||||
|
||||
private void OnHrefClick(string hrefName)
|
||||
{
|
||||
Debug.Log("Click on the " + hrefName);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue