I am GUESSING... I havnt tested this, sue me if it doesn't work.
currentSide.GetComponent().UpdateTexture(0);
could probably be:
BlockScript blockscript = YourGameObject.GetComponent();
After that you can go:
blockscript.UpdateTexture(0);
↧