using System.Collections; using System.Collections.Generic; using UnityEngine; /// /// Logic block which deals with moving a character in a direction /// [CreateAssetMenu(menuName = "Major Project/Rotate Block")] public class Rotate : LogicBlock { #region Inspector Fields [SerializeField] [Header("Rotate Settings")] [Tooltip("Direction to rotate in")] protected Direction direction; #endregion Inspector Fields #region Class Functions /// /// Rotates the player in the direction specified by this block /// /// Player to rotate protected override void BlockLogic(Character player, float animationTime) { player.Rotate(direction); } #endregion Class Functions }