Beispiel #1
0
        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();
                }
            });
        }
Beispiel #2
0
 void DiscardFunction()
 {
     //丢弃
     SaveSprite.RemoveIndexProp(this.attribute, PropIndex, CurrentNumber);
 }
Beispiel #3
0
 void SellFunction()
 {
     //出售
     SaveSprite.AddMoney(attribute.money * Config.sell);
     SaveSprite.RemoveIndexProp(this.attribute, PropIndex, CurrentNumber);
 }