Rotatable.cs 233 B

123456789101112131415
  1. using System;
  2. using UnityEngine;
  3. public enum RotateAxis
  4. {
  5. Up, Right, Forward
  6. }
  7. [Serializable]
  8. public struct Rotatable
  9. {
  10. public GameObject gameObject;
  11. public Transform rotateAround;
  12. public RotateAxis rotateAxis;
  13. }