36 lines
965 B
C#
36 lines
965 B
C#
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<InteractiveUI>();
|
|
|
|
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 =>
|
|
{
|
|
Outline loOutLine = outLineManager.OpenHightLoop(loCube.name);
|
|
Debug.Log(loOutLine.name + " " + loOutLine.enabled);
|
|
if (loOutLine.enabled)
|
|
{
|
|
|
|
}
|
|
else
|
|
{
|
|
|
|
}
|
|
};
|
|
}
|
|
}
|
|
}
|