Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

Commit 6ff88d7

Browse files
committed
2 parents 9fa10a3 + 472c260 commit 6ff88d7

File tree

12 files changed

+352
-341
lines changed

12 files changed

+352
-341
lines changed
Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
1-
/// ========================================================
2-
/// file:ClickTest.cs
3-
/// brief:
4-
/// author: coding2233
5-
/// date:
6-
/// version:v1.0
7-
/// ========================================================
8-
9-
using System.Collections;
10-
using System.Collections.Generic;
11-
using UnityEngine;
12-
using EmojiUI;
13-
14-
public class ClickTest : MonoBehaviour
15-
{
16-
17-
private InlineText _text;
18-
19-
void Awake()
20-
{
21-
_text = GetComponent<InlineText>();
22-
}
23-
24-
void OnEnable()
25-
{
26-
_text.OnHrefClick.AddListener(OnHrefClick);
27-
}
28-
29-
void OnDisable()
30-
{
31-
_text.OnHrefClick.RemoveListener(OnHrefClick);
32-
}
33-
34-
private void OnHrefClick(string hrefName, int id)
35-
{
36-
Debug.Log("点击了 " + hrefName + " id:" + id);
37-
// Application.OpenURL("www.baidu.com");
38-
}
39-
}
1+
/// ========================================================
2+
/// file:ClickTest.cs
3+
/// brief:
4+
/// author: coding2233
5+
/// date:
6+
/// version:v1.0
7+
/// ========================================================
8+
9+
using System.Collections;
10+
using System.Collections.Generic;
11+
using UnityEngine;
12+
using EmojiUI;
13+
14+
public class ClickTest : MonoBehaviour
15+
{
16+
17+
private InlineText _text;
18+
19+
void Awake()
20+
{
21+
_text = GetComponent<InlineText>();
22+
}
23+
24+
void OnEnable()
25+
{
26+
27+
}
28+
29+
void OnDisable()
30+
{
31+
32+
}
33+
34+
private void OnHrefClick(string hrefName, int id)
35+
{
36+
Debug.Log("点击了 " + hrefName + " id:" + id);
37+
// Application.OpenURL("www.baidu.com");
38+
}
39+
}

Assets/Plugins.meta

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Plugins/Editor.meta

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Plugins/Editor/JetBrains.meta

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Plugins/Editor/JetBrains/JetBrains.Rider.Unity.Editor.Plugin.Repacked.dll.meta

Lines changed: 34 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/TextInlineSprite/.DS_Store

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)