using Godot; using System; [GlobalClass] public partial class RMovement : Resource { [Export(PropertyHint.Range, "0,10,0.1,or_greater")] public float Speed; [Export(PropertyHint.Range, "0,10,0.1,or_greater")] public float Acceleration; [Export(PropertyHint.Range, "0,20,1,or_greater")] public float TargetHeight; public RMovement() { Speed = 3.0f; Acceleration = 1.0f; TargetHeight = 10.0f; } public RMovement(float speed, float acceleration, float targetHeight) { Speed = speed; Acceleration = acceleration; TargetHeight = targetHeight; } }