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

33 lines
822 B
C#

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;
}
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);
}
}