public void ShowItemToOtherPlayer(Character activeCharacter) { if (activeCharacter == FisrtChar && !FirstCharShowItems) { FirstCharShowItems = true; Asda2TradeHandler.SendConfimTradeFromOponentResponse(SecondChar.Client, FirstCharacterItems); } else if (activeCharacter == SecondChar && !SecondCharShowItems) { SecondCharShowItems = true; Asda2TradeHandler.SendConfimTradeFromOponentResponse(FisrtChar.Client, SecondCharacterItems); } }
public void ShowItemToOtherPlayer(Character activeCharacter) { if (activeCharacter == this.FisrtChar && !this.FirstCharShowItems) { this.FirstCharShowItems = true; Asda2TradeHandler.SendConfimTradeFromOponentResponse(this.SecondChar.Client, this.FirstCharacterItems); } else { if (activeCharacter != this.SecondChar || this.SecondCharShowItems) { return; } this.SecondCharShowItems = true; Asda2TradeHandler.SendConfimTradeFromOponentResponse(this.FisrtChar.Client, this.SecondCharacterItems); } }