
1. Step3에서 만들어놓은 Test Plane에다가 아래의 Script를 추가
Sprite.cs
using UnityEngine;
using System.Collections;
public enum SpriteType {
Once,
Loop,
}
public class Sprite : MonoBehaviour {
public SpriteType _Type;
public string _TextureName; // texture Name
public int _MaxFrame; // Texture Frame Length
public float _Dealay; // Sprite play Dealay
private TPHelper _TPH;
private int _NowFrame; // now frame Num
...