OnaholeEstrusMode.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. using System;
  2. using UnityEngine;
  3. public class OnaholeEstrusMode : MonoBehaviour
  4. {
  5. public float KP
  6. {
  7. get
  8. {
  9. return this.kp;
  10. }
  11. }
  12. public bool PermissionEstrus
  13. {
  14. get
  15. {
  16. return this.permissionEstrus;
  17. }
  18. set
  19. {
  20. this.permissionEstrus = value;
  21. }
  22. }
  23. public int ReActionLevel
  24. {
  25. get
  26. {
  27. return this.reactionLevel;
  28. }
  29. }
  30. public bool IsEstrus
  31. {
  32. get
  33. {
  34. return this.permissionEstrus && this.ReActionLevel == 2;
  35. }
  36. }
  37. private OnaholeEstrusMode.Mode mode;
  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. }