using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Plate : MonoBehaviour {

    public Sprite[] sprites;
    private SpriteRenderer render;
    // Use this for initialization
    void Start () {
        render = GetComponent<SpriteRenderer>();

    }
	
	// Update is called once per frame
	void Update () {
		

	}

    public void UpdateSprite(int index)
    {
        render.sprite = sprites[index];
    }
}
