using System; using System.Collections; using System.Collections.Generic; using System.Linq; using UnityEngine; using UnityEngine.UI; using WI; namespace Samkwang { public class Panel_BranchSelectionMap : MonoBehaviour { public CanvasGroup SelectionMap; public RectTransform Title; public RectTransform Image_Map; public RectTransform LocationsParent; public Button Button_Exit; public float fadeOutDuration = 0.8f; public List locations = new List(); public UI_BranchLocation selectedLocation; public Action> onSetlocations; public Action onLoadBranchScene; public Action onClickExitButton; private static bool hasPlayedOnce = false; private Coroutine zoomCoroutine; public float targetZoom; public float zoomDuration; public float moveDuration; public float zoomScale; public void Init() { SelectionMap = transform.GetComponentInChildren(); var rectDict = transform.GetChildComponentsByName(); Title = rectDict.GetOrNull(nameof(Title)); Image_Map = rectDict.GetOrNull(nameof(Image_Map)); LocationsParent = rectDict.GetOrNull(nameof(LocationsParent)); var buttonDict = transform.GetChildComponentsByName