//Othercards // Use this for initialization void Start() { turnTick_funcs = GameObject.Find("Turn-Ticker").GetComponent <TurnTick>(); redCard_Text = GameObject.Find("redCardText").GetComponent <Text>(); blueCard_Text = GameObject.Find("blueCardText").GetComponent <Text>(); yellowCard_Text = GameObject.Find("yellowCardText").GetComponent <Text>(); orangeCard_Text = GameObject.Find("orangeCardText").GetComponent <Text>(); greenCard_Text = GameObject.Find("greenCardText").GetComponent <Text>(); Inven_Lookup[colourNames.Red] = new inven_Value(redCard_Text); Inven_Lookup[colourNames.Orange] = new inven_Value(orangeCard_Text); Inven_Lookup[colourNames.Yellow] = new inven_Value(yellowCard_Text); Inven_Lookup[colourNames.Green] = new inven_Value(greenCard_Text); Inven_Lookup[colourNames.Blue] = new inven_Value(blueCard_Text); }
// Use this for initialization void Start() { ColourPool = new List <Color>(); TexturePool = new List <Material>(); Material[] tempTextures = { Resources.Load <Material>("Herb_Mat"), Resources.Load <Material>("Mushroom_Mat"), Resources.Load <Material>("Ore_Mat"), Resources.Load <Material>("Root_Mat") }; tempTextures[0].name = "Herb"; tempTextures[1].name = "Mushroom"; tempTextures[2].name = "Ore"; tempTextures[3].name = "Root"; Textures = tempTextures; initializeColourPool(); CatAnimator = GameObject.Find("Cat_Model").GetComponent <Animator>(); clickedCards = new List <CardBehaviour>(); tutorialPotionsController = GameObject.Find("TutorialPotionController").GetComponent <TutorialPotionsController>(); turnTick = GameObject.Find("Turn-Ticker").GetComponent <TurnTick>(); StartCoroutine(setStartCardMaterial()); }
void Start() { TickScript = Ticker.GetComponent <TurnTick>(); }
void Start() { //Potion_controls = GameObject.Find("PotionController").GetComponent<PotionController>(); Tut_Potion_controls = GameObject.Find("TutorialPotionController").GetComponent <TutorialPotionsController>(); turnTick = GameObject.Find("Turn-Ticker").GetComponent <TurnTick>(); }