コード例 #1
0
ファイル: LoadSlot.cs プロジェクト: gregoirelebas/ZeroGames
    /// <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();
    }