Пример #1
0
    void SetLUVText(LargeCardView v, int level)
    {
        Card           c  = GameManager.Instance.Cards[v.Id];
        CardLevelSheet cs = c.GetLevelSheet(level);

        v.SetLevel(cs.Level);
        v.SetLevel(cs.Level);
        v.SetText(cs.Text);
    }
Пример #2
0
    void DisplayLargeCardView(string id)
    {
        // todo: don't replace "'" with "" here. replace that when reading data from Google Drive
        Debug.Log("MatchController:CardPointerClick()");
        largeCardViewObj = GameObject.Instantiate(LargeCardViewPrefab);
        largeCardViewObj.transform.SetParent(Canvas.transform, false);
        largeCardView = (LargeCardView)largeCardViewObj.GetComponent("LargeCardView");
        CardLevelSheet c = GameManager.Instance.CardData[id];

        largeCardView.Id = c.ID;
        largeCardView.SetCost(c.Cost);
        largeCardView.SetLevel(c.Level);
        largeCardView.SetName(c.Name);
        largeCardView.SetType(c.Type);
        largeCardView.SetSubtype(c.Subtype);
        largeCardView.SetText(c.Text);
        largeCardView.PreviousDel  = LUVPrevious;
        largeCardView.NextDel      = LUVNext;
        largeCardView.BackDel      = LUVBack;
        largeCardView.Image.sprite = Resources.Load <Sprite> (c.Art);         // todo: SetImage and make Image not settable publicly
        largeCardView.SetRarity(c.Rarity);
        largeCardView.SetFaction(c.Faction);

        largeCardViewVisible = true;
    }