void GetFunction() { //交给 List <CharacterAttribute> ary = SaveSprite.GetCharacterAttributeAry(); PanelManager.Instantiate.SelectedCharacterPanel.Open(ary, delegate(CharacterAttribute Character) { if (Character == null) { return; } GameNumber game = new GameNumber(this.attribute); if (Character.AddProp(game) == false) { PanelManager.Instantiate.ErrorPanel.Open("full"); } else { SaveSprite.RemoveIndexProp(this.attribute, PropIndex, CurrentNumber); PanelManager.Instantiate.Character.OnUpdate(); PanelManager.Instantiate.BackPack.OnUpdate(); Close(); } }); }
void DiscardFunction() { //丢弃 SaveSprite.RemoveIndexProp(this.attribute, PropIndex, CurrentNumber); }
void SellFunction() { //出售 SaveSprite.AddMoney(attribute.money * Config.sell); SaveSprite.RemoveIndexProp(this.attribute, PropIndex, CurrentNumber); }