23 lines
673 B
C#
23 lines
673 B
C#
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<Outline>());
|
|
outLineManager.CloseAllOutLine();
|
|
foreach (Transform loCube in parent.transform)
|
|
{
|
|
loCube.GetComponent<MouseMoveObj>().down += m =>
|
|
{
|
|
outLineManager.OpenHightLightAndCloseOther(loCube.name);
|
|
};
|
|
}
|
|
}
|
|
}
|