﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace Supergun
{
    [CreateAssetMenu(fileName = "Data", menuName = "Weapon System/Straight", order = 1)]
    public class Straight : WeaponPath
    {

        public override Vector2 Travel(Vector2 position, Vector2 direction, float linearSpeed)
        {
            return Move(position, direction, linearSpeed);
        }

        public Vector2 Move(Vector2 position, Vector2 direction, float linearSpeed)
        {
            Vector2 newPosition = position + direction * linearSpeed * Time.fixedDeltaTime;

            return newPosition;
        }
    }
}