Beispiel #1
0
    /***** Metodos auxiliares *****/
    private void GenerarCelda(Celda celda)
    {
        celda.gameObject.AddComponent <Image>();
        celda.gameObject.AddComponent <Animator>();
        celda.Awake();

        sprite           = Resources.Load("IconosItems/botas") as Sprite;
        celda.sprites    = new Sprite[2];
        celda.sprites[0] = sprite;
        celda.sprites[1] = sprite;
    }