using System.Collections;
using System.Collections.Generic;
using UnityEngine;
///
/// Logic block which deals with moving a character in a direction
///
[CreateAssetMenu(menuName = "Major Project/Move Block")]
public class Move : LogicBlock
{
[SerializeField]
protected Direction direction = Direction.Forward;
#region Class Functions
///
/// Implementation of BlockLogic, moves the player forward
///
/// Player to move
protected override void BlockLogic(Character player, float animationTime)
{
player.Move(direction);
}
#endregion Class Functions
}