// 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());
    }
예제 #2
0
 void Start()
 {
     //Potion_controls = GameObject.Find("PotionController").GetComponent<PotionController>();
     Tut_Potion_controls = GameObject.Find("TutorialPotionController").GetComponent <TutorialPotionsController>();
     turnTick            = GameObject.Find("Turn-Ticker").GetComponent <TurnTick>();
 }