Beispiel #1
0
    public void LeerDatosAsset()
    {
        // universal actions for any Card
        LeerDatosCarta();
        AplicarColor();
        LeerSprites();


        if (PreviewManager != null)
        {
            // this is a card and not a preview
            // Preview GameObject will have OneCardManager as well, but PreviewManager should be null there

            PreviewManager.CartaAsset = CartaAsset;
            PreviewManager.LeerDatosAsset();
        }
    }