2D-Platformer/Assets/Scripts/Data/Actor/ActorDeathAnimationData.cs
2022-02-12 12:53:50 +02:00

17 lines
No EOL
419 B
C#

using Unity.Entities;
namespace DefaultNamespace
{
/// <summary>
/// Used to keep GO for some time to do fancy animations.
/// If this component is not present the GO is destroyed instantly.
/// </summary>
[GenerateAuthoringComponent]
public struct ActorDeathAnimationData : IComponentData
{
/// <summary>
/// The amount of time in seconds the GO should remain.
/// </summary>
public float Time;
}
}