コード例 #1
0
    void UpdateChipButton(Chip chip)
    {
        if (hideList.Contains(chip.chipName))
        {
            //Debug.Log("Hiding")
            return;
        }

        CustomButton button = customButton.Find(g => g.name == "Create (" + chip.chipName + ")");

        if (button != null)
        {
            button.ClearEvents();
            button.AddListener(() => manager.SpawnChip(chip));
        }
    }