Project_WL/Assets/Script/UI/ETC/GuideQuestArrow.cs

33 lines
826 B
C#
Raw Normal View History

2024-12-15 01:39:39 +00:00
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[Serializable]
public class GuideArrowClass { public GameObject[] gos; }
public class GuideQuestArrow : MonoBehaviourSingletonTemplate<GuideQuestArrow>
{
public GuideArrowClass[] gos_arrow;
private void Start()
{
AllArrowOff();
//if (NewGameUI.Ins.m_GuideQuestUI.Get_Purpose() == ePurpose.Complete)
// enabled = false;
2024-12-15 01:39:39 +00:00
}
public void AllArrowOff()
{
for (int i = 0; i < gos_arrow.Length; i++)
DSUtil.InActivateGameObjects(gos_arrow[i].gos);
}
public void Set(int _id, bool _notclear)
{
if (_id > gos_arrow.Length)
enabled = false;
else if (_notclear)
DSUtil.ActivateGameObjects(gos_arrow[_id].gos);
}
}