Exemple #1
0
    //---------------------------------------------------------------
    public void ShowCorrespondIndicator()
    {
        if (scrollSnapRect.GetMapSetUpEnd())
        {
            targetIndicatorPref.SetActive(false);

            string currentMapName = scrollSnapRect.GetCurrentMapName();
            for (int dotNameIndex = 0; dotNameIndex < dotLocationNames.Length; dotNameIndex++)
            {
                if (dotLocationNames[dotNameIndex] == currentMapName)
                {
                    targetIndicatorPref.SetActive(true);
                    targetIndicatorPref.transform.position = transform.GetChild(dotNameIndex).position;
                    return;
                }
            }
        }
    }