Пример #1
0
    /// <summary>
    /// Add listener to load config with index.
    /// </summary>
    public void SetSlotIndex(CharacterEditor editor, int index)
    {
        slotBtn.onClick.AddListener(() => editor.LoadConfig(index));

        slotText.text = (index + 1).ToString();
    }