private void CardIndexToolStripMenuItem_Click(object Sender, EventArgs Args) { Card = new Card_Manager(Man); Man.Load(); Card.Load(); LoadCards(); }
public void Awake() { thisdeck = GameObject.Find("Card Manager").GetComponent <Card_Manager>(); PHand = GameObject.Find("Card Manager").GetComponent <Player_Hand>(); MoneySound = GetComponent <AudioSource>(); Winner_Text = GameObject.Find("Winning Text").GetComponent <TextMeshProUGUI>(); Winner_Text.enabled = false; BM = GetComponent <Betting_Manager>(); WinningMoneyText = GameObject.Find("Money Winning Text").GetComponent <TextMeshProUGUI>(); WinningMoneyText.enabled = false; }
public void Load() { Archive.Load(); BattlePackData.Clear(); ShopPackData.Clear(); DeckData = Archive.LoadLocalizedFile <Deck_Data>(); CharData = Archive.LoadLocalizedFile <Char_Data>(); SkuData = Archive.LoadLocalizedFile <SKU_Data>(); ArenaData = Archive.LoadLocalizedFile <Arena_Data>(); DuelData = Archive.LoadLocalizedFile <Duel_Data>(); PackDefData = Archive.LoadLocalizedFile <Pack_Def_Data>(); CardLimits = Archive.LoadFiles <Card_Limits>()[0]; BattlePackData.AddRange(Archive.LoadFiles <Battle_Pack>().ToList()); ShopPackData.AddRange(Archive.LoadFiles <Shop_Pack>().ToList()); CardManager = new Card_Manager(this); CardManager.Load(); }
public void BuyThisCard() { if (cardSpecies != CardManager.CardSpecies.Commodity) { Debug.Log("此物不是商品"); if (cardName == CardManager.CardName.Exit) { MyisExitCard(); } return; } if (!Game_Flow.DetuctMoney(money)) { Debug.Log("金錢不足"); } else { Card_Manager.BuyOneNewCard(cardName); Destroy(gameObject); } }
public void Start() { cardmanager = GameObject.Find("Card Manager").GetComponent <Card_Manager>(); StartingDeck = cardmanager.StartingDeck; PlayerHand = cardmanager.PHand; }