public void OnTargetBSelected(int index) { if (_transferControllers != null) { _transferControllers.Clear(); } if (index == 0 && _transferTargetB != null) { _transferTargetB = null; UpdateResources(); } else if (TargetBDropdown.options.Count > index) { var selectedOption = TargetBDropdown.options[index] as DropdownOptionWithId; if (selectedOption.Id != "0") { var target = _transferTargets[selectedOption.Id]; if (_transferTargetB != target) { _transferTargetB = target; UpdateResources(); } } } }
public override void Reset() { _transferTargetA = null; _transferTargetB = null; ClearResourcePanels(); HideAlert(); HideRow(Row2); }