예제 #1
0
    void Start()
    {
        recipeList = new List <Recipe>(Resources.LoadAll <Recipe>("Recipe"));
        lootCount  = 0;
        token.text = t.ToString();
        dub        = false;
        fm         = GameObject.Find("Forge Room").GetComponent <ForgeRoom>();
        player     = GameObject.FindGameObjectWithTag("Player").GetComponent <BasicMovment>();
        playerHand = GameObject.Find("PlayerHand");

        if (cardSelected == null)
        {
        }
        for (int i = 0; i < 4; i++)
        {
            pHand[i] = playerHand.transform.GetChild(i).gameObject;
            pHand[i].SetActive(false);
        }
        maxCards    = playerDeck.Count;
        deckPercent = playerDeck.Count / maxCards;
        //for (int i = 0; i < recipeList.Count; i++)
        //{
        //    if (recipeList[i] is ReciipeTest)
        //    {
        //        Debug.Log("AWWWWWWWWWWWWWWWWWW");
        //    }
        //}
    }
예제 #2
0
 public void Start()
 {
     fm  = GameObject.Find("Forge Room").GetComponent <ForgeRoom>();
     cm  = GameObject.Find("GameManager").GetComponent <CardManager>();
     c   = cm.forge1Display.GetComponent <Image>().color;
     c.a = 1;
 }
예제 #3
0
    // Use this for initialization
    void Start()
    {
        fm = GameObject.Find("Forge Room").GetComponent <ForgeRoom>();
        cm = GameObject.Find("GameManager").GetComponent <CardManager>();

        c   = cm.forge1Display.GetComponent <Image>().color;
        d   = c;
        d.a = 0;
        c.a = .3f;
        //LoadRecipe();
    }
예제 #4
0
 void Start()
 {
     maxCards   = playerDeck.Count;
     token.text = t.ToString();
     fm         = GameObject.Find("Forge Room").GetComponent <ForgeRoom>();
     player     = GameObject.FindGameObjectWithTag("Player").GetComponent <BasicMovment>();
     playerHand = GameObject.Find("PlayerHand");
     gm         = GameManager.gm;
     if (cardSelected == null)
     {
     }
     for (int i = 0; i < 4; i++)
     {
         pHand[i] = playerHand.transform.GetChild(i).gameObject;
         pHand[i].SetActive(false);
     }
 }