Esempio n. 1
0
    public void SetInteractable(bool interactable)
    {
        if (interactable)
        {
            StartCoroutine(CoroutineUtil.DoNextFrame(() => { canvas_group.interactable = interactable; }));

            if (!manager.IsUsingMouse() && first_selected != null)
            {
                manager.GetEventSystem().SetSelectedGameObject(first_selected);
            }
        }
        else
        {
            canvas_group.interactable = interactable;
        }
    }