示例#1
0
 private void DestroyTradableSpaces()
 {
     foreach (Transform tradableSpace in TradableSpacesWithCharacters)
     {
         Destroy(tradableSpace.gameObject);
     }
     TradableSpacesWithCharacters.Clear();
 }
示例#2
0
        private void CharacterActionMenuTrade(Object[] objects)
        {
            Debug.Log("OnEnterCharacterActionMenuTrade");

            TradableSpacesWithCharacters.Clear();
            TradableSpacesWithCharacters.AddRange(SelectedCharacter.CreateTradableTransforms(SelectedCharacter.CalculateTradablePositionsWithCharacters()));
            GameManager.CharacterActionMenu.Hide();
            CurrentState = State.ChoosingTradeTarget;
            SetTradableSpaceWithCharacter();
            Focus();
        }