From 7ddc0019db27b5a9377342433b3ef0b888bc9b7f Mon Sep 17 00:00:00 2001 From: chai <215380520@qq.com> Date: Thu, 19 Oct 2023 16:16:40 +0800 Subject: *misc --- Docs/TAB_UnityExploerer.txt | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'Docs/TAB_UnityExploerer.txt') diff --git a/Docs/TAB_UnityExploerer.txt b/Docs/TAB_UnityExploerer.txt index ed028a6..e69de29 100644 --- a/Docs/TAB_UnityExploerer.txt +++ b/Docs/TAB_UnityExploerer.txt @@ -1,28 +0,0 @@ -// To start a Coroutine directly, use "Start(SomeCoroutine());" in REPL mode. - -// To declare a coroutine, you will need to compile it separately. For example: -public class MyCoro -{ - public static IEnumerator Main() - { - while(true){ - GameObject go = GameObject.Find("Player_Target"); - if(go != null ) { - Rigidbody[] rigs = go.transform.GetComponentsInChildren(); - for(int i = 0; i < rigs.Length; i++) { - var rig = rigs[i]; - //Debug.Log(rig.gameObject.name); - Debug.DrawLine(rig.transform.position, rig.transform.position + 10*rig.transform.forward); - } - } - yield return null; - } - } -} -// To run this Coroutine in REPL, it would look like "Start(MyCoro.Main());" - - - - - -Start(MyCoro.Main()); \ No newline at end of file -- cgit v1.1-26-g67d0