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"); // } //} }
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; }
// 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(); }
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); } }