This repository has been archived by the owner on Jul 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from cjsjy123/master
more easy and more faster and less gc
- Loading branch information
Showing
40 changed files
with
3,676 additions
and
3,566 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,3 +35,4 @@ | |
*.csproj | ||
*.sln | ||
*.suo | ||
/Assets/Plugins |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,39 @@ | ||
/// ======================================================== | ||
/// file:ClickTest.cs | ||
/// brief: | ||
/// author: coding2233 | ||
/// date: | ||
/// version:v1.0 | ||
/// ======================================================== | ||
|
||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
using EmojiUI; | ||
|
||
public class ClickTest : MonoBehaviour { | ||
|
||
private InlineText _text; | ||
|
||
void Awake() | ||
{ | ||
_text = GetComponent<InlineText>(); | ||
} | ||
|
||
void OnEnable() | ||
{ | ||
_text.OnHrefClick.AddListener(OnHrefClick); | ||
} | ||
|
||
void OnDisable() | ||
{ | ||
_text.OnHrefClick.RemoveListener(OnHrefClick); | ||
} | ||
|
||
private void OnHrefClick(string hrefName,int id) | ||
{ | ||
Debug.Log("点击了 " + hrefName+" id:"+id); | ||
// Application.OpenURL("www.baidu.com"); | ||
} | ||
} | ||
/// ======================================================== | ||
/// file:ClickTest.cs | ||
/// brief: | ||
/// author: coding2233 | ||
/// date: | ||
/// version:v1.0 | ||
/// ======================================================== | ||
|
||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
using EmojiUI; | ||
|
||
public class ClickTest : MonoBehaviour | ||
{ | ||
|
||
private InlineText _text; | ||
|
||
void Awake() | ||
{ | ||
_text = GetComponent<InlineText>(); | ||
} | ||
|
||
void OnEnable() | ||
{ | ||
|
||
} | ||
|
||
void OnDisable() | ||
{ | ||
|
||
} | ||
|
||
private void OnHrefClick(string hrefName, int id) | ||
{ | ||
Debug.Log("点击了 " + hrefName + " id:" + id); | ||
// Application.OpenURL("www.baidu.com"); | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
using UnityEditor; | ||
[InitializeOnLoad] | ||
public class AutoSetInlineOrder : MonoBehaviour { | ||
|
||
|
||
#if UNITY_EDITOR | ||
static AutoSetInlineOrder() | ||
{ | ||
|
||
foreach (MonoScript monoScript in MonoImporter.GetAllRuntimeMonoScripts()) | ||
{ | ||
if (monoScript.name == "InlineManager") | ||
{ | ||
if(MonoImporter.GetExecutionOrder(monoScript) != 10) | ||
MonoImporter.SetExecutionOrder(monoScript, 10); | ||
} | ||
} | ||
} | ||
#endif | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.