You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
675 B

  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. /// <summary>
  5. /// Logic block which deals with moving a character in a direction
  6. /// </summary>
  7. [CreateAssetMenu(menuName = "Major Project/Rotate Block")]
  8. public class Rotate : LogicBlock
  9. {
  10. public enum Direction { Left, Right}
  11. #region Inspector Fields
  12. [SerializeField]
  13. [Header("Rotate Settings")]
  14. [Tooltip("Direction to rotate in")]
  15. protected Direction direction;
  16. #endregion Inspector Fields
  17. #region Class Functions
  18. protected override void BlockLogic()
  19. {
  20. Debug.Log("Rotate " + direction.ToString());
  21. }
  22. #endregion Class Functions
  23. }