Example #1
0
    IEnumerator jakob()
    {
        cgc = GameObject.FindGameObjectWithTag("GameController").GetComponent<CardGridController>();

        yield return new WaitForSeconds(2);
        PlaceCard();
    }
 void Start()
 {
     CardController = (CardGridController)GameObject.Find("Card_Grid").GetComponent(typeof(CardGridController));
     animator       = GetComponent <Animator>();
     ThisColour     = Color.white;
     CardController.SendCardInfo(this);
     thisMaterial = GetComponent <MeshRenderer>().material;
     emitter      = GetComponent <SoundTrigger>();
 }