SupaLidlGame/Entities/ShungiteDart.cs

18 lines
362 B
C#

using Godot;
namespace SupaLidlGame.Entities;
public partial class ShungiteDart : Projectile
{
public override void _Ready()
{
var player = GetNode<AnimationPlayer>("AnimationPlayer");
if (Delay > 0)
{
player.Play("spin");
player.SpeedScale = (float)(1 / Delay);
}
base._Ready();
}
}