r2mods/ilspy_dump/ror2_csproj/RoR2/SimpleSpriteAnimation.cs

21 lines
339 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using System;
using UnityEngine;
namespace RoR2;
[CreateAssetMenu(menuName = "RoR2/SimpleSpriteAnimation")]
public class SimpleSpriteAnimation : ScriptableObject
{
[Serializable]
public struct Frame
{
public Sprite sprite;
public int duration;
}
public float frameRate = 60f;
public Frame[] frames = Array.Empty<Frame>();
}