using System.Collections; using System.Collections.Generic; using UnityEngine; using ZXKFramework; using QuickOutline; public class InteractiveLuancher : MonoBehaviour { OutLineManager outLineManager = new OutLineManager(); void Start() { Game.Instance.uiManager.ShowUI(); GameObject parent = GameObject.Find("Parent"); outLineManager.Init(parent.transform, parent.GetComponent()); outLineManager.CloseAllOutLine(); foreach (Transform loCube in parent.transform) { loCube.GetComponent().down += m => { Outline loOutLine = outLineManager.OpenHightLoop(loCube.name); Debug.Log(loOutLine.name + " " + loOutLine.enabled); if (loOutLine.enabled) { } else { } }; } } }