前两个页面迁移完成
This commit is contained in:
1 parent
ba324aa68d
commit
e7044b3cde
67 files changed
+6373
-3171
No files matched your search
@@ -29,6 +29,25 @@ namespace Assets.Scripts
|
||||
}
|
||||
/*显示简略提示,需要拖Toast的预制件,且保证其他组件名字不是Toast,ToastContainer*/
|
||||
|
||||
/*删除父亲节点下的所有孩子*/
|
||||
static public void DestroyChildren(this Transform t)
|
||||
{
|
||||
bool isPlaying = Application.isPlaying;
|
||||
|
||||
while (t.childCount != 0)
|
||||
{
|
||||
Transform child = t.GetChild(0);
|
||||
|
||||
if (isPlaying)
|
||||
{
|
||||
child.parent = null;
|
||||
UnityEngine.Object.Destroy(child.gameObject);
|
||||
}
|
||||
else UnityEngine.Object.DestroyImmediate(child.gameObject);
|
||||
}
|
||||
}
|
||||
/*删除父亲节点下的所有孩子*/
|
||||
|
||||
/*显示网络图片*/
|
||||
public delegate Coroutine StartCoroutine(IEnumerator routine);
|
||||
public static void DisplayImage(StartCoroutine startCoroutine,RawImage img, string url)
|
||||
|
||||
Reference in new issue
Block a user