2023-07-17 09:30:49 -07:00
|
|
|
using Godot;
|
2023-07-18 00:57:28 -07:00
|
|
|
|
2023-07-17 09:30:49 -07:00
|
|
|
namespace SupaLidlGame.Entities;
|
|
|
|
|
2023-07-17 23:54:07 -07:00
|
|
|
public partial class ShungiteDart : Projectile
|
2023-07-17 09:30:49 -07:00
|
|
|
{
|
|
|
|
public override void _Ready()
|
|
|
|
{
|
|
|
|
var player = GetNode<AnimationPlayer>("AnimationPlayer");
|
2023-07-18 00:57:28 -07:00
|
|
|
if (Delay > 0)
|
|
|
|
{
|
|
|
|
player.Play("spin");
|
|
|
|
player.SpeedScale = (float)(1 / Delay);
|
|
|
|
}
|
2023-07-17 09:30:49 -07:00
|
|
|
base._Ready();
|
|
|
|
}
|
|
|
|
}
|