private void Awake() { if (!_moduleIdCounters.ContainsKey(Name)) { _moduleIdCounters[Name] = 1; } _moduleId = _moduleIdCounters[Name]++; _module = GetComponent <KMBombModule>(); Scaffold = Instantiate(ScaffoldPrefab, transform); var moduleSelectable = GetComponent <KMSelectable>(); foreach (var btn in Scaffold.Buttons) { btn.Parent = moduleSelectable; } moduleSelectable.Children = Scaffold.Buttons; moduleSelectable.UpdateChildren(); for (int i = 0; i < 16; i++) { Scaffold.Buttons[i].OnInteract = MakeButtonHandler(i); } Scaffold.SetAllButtonsBlack(); Scaffold.FixLightSizes(_module.transform.lossyScale.x); }