19 lines
356 B
C#
19 lines
356 B
C#
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using Godot;
|
|
using Godot.Bridge;
|
|
using Godot.NativeInterop;
|
|
|
|
[ScriptPath("res://Scripts/Spin.cs")]
|
|
public partial class Spin : Node2D
|
|
{
|
|
[Export(PropertyHint.None, "")]
|
|
private float spd;
|
|
|
|
public override void _Process(double delta)
|
|
{
|
|
base.RotationDegrees += spd * Main.deltaTime;
|
|
}
|
|
|
|
}
|