Exemple #1
0
    public void Init()
    {
        transform.localScale = cardSize;

        meshRenderer = cardMesh.GetComponent <MeshRenderer>();
        meshRenderer.material.mainTexture = image;

        if (null != onPlayActionChain)
        {
            onPlayActionChain = Instantiate(onPlayActionChain);
            onPlayActionChain.SetCardReference(this);
        }
        if (null != onDestroyActionChain)
        {
            onDestroyActionChain = Instantiate(onDestroyActionChain);
            onDestroyActionChain.SetCardReference(this);
        }
    }