oldie/scenes/gear/Gear.cs

17 lines
234 B
C#
Raw Normal View History

2022-11-09 20:21:26 -03:00
using Godot;
public class Gear : Area2D
{
2022-11-14 08:31:16 -03:00
private Sprite _sprite;
public override void _Ready()
{
_sprite = GetNode<Sprite>("Sprite");
}
2022-11-09 20:21:26 -03:00
public override void _Process(float delta)
{
2022-11-14 08:31:16 -03:00
_sprite.Rotate(Mathf.Deg2Rad(2));
2022-11-09 20:21:26 -03:00
}
}