Blagovest-Hristov_Voyage-And-Doom/Project Unnamed/Assets/Tarodev 2D Controller/_Scripts/PlayerExtras.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace TarodevController {
 
    public struct FrameInput {
        public float X,Y;
        public bool JumpDown;
        public bool JumpUp;
    }

    public interface IPlayerController {
        public Vector3 Velocity { get; }
        public FrameInput Input { get; }
        public bool JumpingThisFrame { get; }
        public bool LandingThisFrame { get; }
        public Vector3 RawMovement { get; }
        public bool Grounded { get; }
    }
    
    public interface IExtendedPlayerController : IPlayerController {
        public bool DoubleJumpingThisFrame { get; set; }
        public bool Dashing { get; set; }  
    }

    public struct RayRange {
        public RayRange(float x1, float y1, float x2, float y2, Vector2 dir) {
            Start = new Vector2(x1, y1);
            End = new Vector2(x2, y2);
            Dir = dir;
        }

        public readonly Vector2 Start, End, Dir;
    }
}