Messing with patron objects.

This commit is contained in:
shakurass 2014-04-26 21:54:17 -06:00
commit abf4983ffa
12 changed files with 448 additions and 159 deletions

View file

@ -31,11 +31,10 @@ public class AnimateSprite : MonoBehaviour {
//split into x and y indexes
Vector2 offset = new Vector2((float)index / columns - (index / columns), //x index
(index / columns) / (float)rows); //y index
renderer.sharedMaterial.SetTextureOffset("_MainTex", offset);
yield return new WaitForSeconds(1f / framesPerSecond);
}
}
}