Cartoon.cs 571 B

12345678910111213141516171819202122232425
  1. using UnityEngine;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. namespace WXB
  5. {
  6. [System.Serializable]
  7. public class Cartoon
  8. {
  9. public string name; // 动画名
  10. public string content;
  11. public int[] fps; // 播放速度
  12. public Sprite[] sprites; // 精灵序列桢
  13. public float space = 2f; // 与其他元素之间的间隔
  14. public int width;
  15. public int height;
  16. public int frameWidth;
  17. public int frameHeight;
  18. public int xOffset;
  19. public int yOffset;
  20. }
  21. }