private void DestroyTradableSpaces() { foreach (Transform tradableSpace in TradableSpacesWithCharacters) { Destroy(tradableSpace.gameObject); } TradableSpacesWithCharacters.Clear(); }
private void CharacterActionMenuTrade(Object[] objects) { Debug.Log("OnEnterCharacterActionMenuTrade"); TradableSpacesWithCharacters.Clear(); TradableSpacesWithCharacters.AddRange(SelectedCharacter.CreateTradableTransforms(SelectedCharacter.CalculateTradablePositionsWithCharacters())); GameManager.CharacterActionMenu.Hide(); CurrentState = State.ChoosingTradeTarget; SetTradableSpaceWithCharacter(); Focus(); }