private void Start() { toggle.onValueChanged.AddListener((bool value) => hexMapEditor.ChangeHintToDetailed(value, index)); }