protected override void OnShowStart() { _first = null; _second = null; _isExchangeMode = false; for (int i = 0; i < _agentsList.Count; i++) { _agentsList[i].interactable = false; } _title.text = "My agents"; }
public void OnItemClicked(PlayerAgentItemUI item) { if (_first == null) { _first = item; } else if (_second == null) { _second = item; _player.SwapAgents(_first.Info, _second.Info); _first.Reset(); _second.Reset(); _first = null; _second = null; OnSwapButtonClick(); OnUpdateInfo(_player); } }