OnaholeEstrusMode.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. using System;
  2. using UnityEngine;
  3. public class OnaholeEstrusMode : MonoBehaviour
  4. {
  5. public OnaholeEstrusMode.Mode mode { get; private set; }
  6. public float KP
  7. {
  8. get
  9. {
  10. return this.kp;
  11. }
  12. }
  13. public bool PermissionEstrus
  14. {
  15. get
  16. {
  17. return this.permissionEstrus;
  18. }
  19. set
  20. {
  21. this.permissionEstrus = value;
  22. }
  23. }
  24. public int ReActionLevel
  25. {
  26. get
  27. {
  28. return this.reactionLevel;
  29. }
  30. }
  31. public bool IsEstrus
  32. {
  33. get
  34. {
  35. return this.permissionEstrus && this.ReActionLevel == 2;
  36. }
  37. }
  38. [SerializeField]
  39. private bool permissionEstrus;
  40. [SerializeField]
  41. private float kp;
  42. [SerializeField]
  43. private int reactionLevel;
  44. private int levelColmun = 10;
  45. private float beforeInsertDepth;
  46. private bool reception;
  47. [SerializeField]
  48. private float receptionTime;
  49. private const float receptionTimeMax = 0.75f;
  50. private const int estrusLevel = 2;
  51. private const float insertStart = 0.3f;
  52. private const float insertEnd = 0.66f;
  53. [SerializeField]
  54. private float sliderMultiple = 1f;
  55. private UIButton buttonAuto;
  56. private Color buttonDefaultColor = default(Color);
  57. private UIButton buttonLevelUp;
  58. private UILabel labelLevel;
  59. public enum Mode
  60. {
  61. Non,
  62. Auto,
  63. Manual
  64. }
  65. }