ModeController.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class ModeController : MonoBehaviour
  5. {
  6. public enum Perspective
  7. {
  8. FirstPersonPerspective,
  9. ThirdPersonPerspective,
  10. ThirdPersonPerspectiveWithMultipleViews
  11. };
  12. public enum Complexity
  13. {
  14. OneArm,
  15. TwoArms,
  16. TwoArmsPlusLeg
  17. }
  18. public enum Direction
  19. {
  20. Sideways,
  21. Forward,
  22. Backward
  23. }
  24. public enum Feedback
  25. {
  26. None,
  27. ColorFeedback,
  28. HapticFeedback
  29. }
  30. public enum Speed
  31. {
  32. Slow,
  33. Fast
  34. }
  35. public bool testing;
  36. public Perspective perspective;
  37. public Complexity complexity;
  38. public Direction direction;
  39. public Feedback feedback;
  40. public Speed speed;
  41. public GameObject monitors;
  42. private void Start()
  43. {
  44. if (perspective == Perspective.ThirdPersonPerspectiveWithMultipleViews)
  45. {
  46. monitors.SetActive(true);
  47. }
  48. else
  49. {
  50. monitors.SetActive(false);
  51. }
  52. }
  53. }