using System.Collections; using System.Collections.Generic; using UnityEngine; using QuickOutline; using ZXKFramework; public class OutLineDemoLauncher : MonoBehaviour { OutLineManager outLineManager = new OutLineManager(); void Start() { GameObject parent = GameObject.Find("Parent"); outLineManager.Init(parent.transform, parent.GetComponent()); outLineManager.CloseAllOutLine(); foreach (Transform loCube in parent.transform) { loCube.GetComponent().down += m => { outLineManager.OpenHightLightAndCloseOther(loCube.name); }; } } }