コード例 #1
0
    /// <summary>
    /// Set this item selectable.
    /// </summary>
    private void SetItemSelectable()
    {
        // disable all menu cursors.
        GameObject[] cursors = GameObject.FindGameObjectsWithTag("menu_cursor");

        foreach (GameObject localCursor in cursors)
        {
            localCursor.SetActive(false);
        }

        // active current selectable cursor.
        cursor.SetActive(true);
        cursorClass.inAnimation = false;

        // update description title and description content based on option chosen.
        UpdateDesc();

        if (onLoaded)
        {
            cursorClass.ReproduceSelectableSound();
        }

        onLoaded = true;
    }