ModeController.cs 733 B

12345678910111213141516171819202122232425262728293031323334353637
  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 Feedback
  13. {
  14. NoFeedback,
  15. ColorFeedback,
  16. HapticFeedback
  17. }
  18. public Perspective perspective;
  19. public Feedback feedback;
  20. public GameObject monitors;
  21. private void Start()
  22. {
  23. if (perspective == Perspective.ThirdPersonPerspectiveWithMultipleViews)
  24. {
  25. monitors.SetActive(true);
  26. }
  27. else
  28. {
  29. monitors.SetActive(false);
  30. }
  31. }
  32. }