Ejemplo n.º 1
0
        private IEnumerator HandleTradeComm_DeclineOffer()
        {
            if (playerOfferedPokemonLocator == null || otherUserOfferedPokemon == null)
            {
                Debug.LogError("Trying to have other user decline offer when an offered pokemon isn't set");
                yield break;
            }

            waitingForPlayerChoice = false;

            yield return(StartCoroutine(ClearOtherUserOfferedPokemon()));

            yield return(StartCoroutine(ClearPlayerOfferedPokemon()));

            textBoxController.StopGettingUserChoice();
            yield return(StartCoroutine(
                             textBoxController.RevealText(otherUserName + offerDeclinedByOtherUserMessageSuffix, true)
                             ));

            yield return(StartCoroutine(SetTradeStage(TradeStage.ChoosingOffer)));
        }