34 lines
884 B
C#
34 lines
884 B
C#
using UnityEngine;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
|
|
namespace AnimationImporter
|
|
{
|
|
public class ImportedAnimationFrame
|
|
{
|
|
// ================================================================================
|
|
// naming
|
|
// --------------------------------------------------------------------------------
|
|
|
|
private string _name;
|
|
public string name
|
|
{
|
|
get { return _name; }
|
|
set { _name = value; }
|
|
}
|
|
|
|
// ================================================================================
|
|
// properties
|
|
// --------------------------------------------------------------------------------
|
|
|
|
public int x;
|
|
public int y;
|
|
public int width;
|
|
public int height;
|
|
|
|
public int duration; // in milliseconds as part of an animation
|
|
|
|
// reference to the Sprite that was created with this frame information
|
|
public Sprite sprite = null;
|
|
}
|
|
} |