UnityGameProjectsCode / Rise2Point0Game / Tools / DropdownOpenScript.cs
DropdownOpenScript.cs
Raw
using UnityEngine;

public class DropdownOpenScript : MonoBehaviour
{
    void Start()
    {
        if (gameObject.name == "Dropdown List")
        {
            GUIManager.SetDropDownsOpen(true);
        }
    }

    private void OnDestroy()
    {
        if (gameObject.name == "Dropdown List")
        {
            GUIManager.SetDropDownsOpen(false);
        }
    }
}