123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- using System;
- using UnityEngine;
- public class OnaholeEstrusMode : MonoBehaviour
- {
- public float KP
- {
- get
- {
- return this.kp;
- }
- }
- public bool PermissionEstrus
- {
- get
- {
- return this.permissionEstrus;
- }
- set
- {
- this.permissionEstrus = value;
- }
- }
- public int ReActionLevel
- {
- get
- {
- return this.reactionLevel;
- }
- }
- public bool IsEstrus
- {
- get
- {
- return this.permissionEstrus && this.ReActionLevel == 2;
- }
- }
- private OnaholeEstrusMode.Mode mode;
- [SerializeField]
- private bool permissionEstrus;
- [SerializeField]
- private float kp;
- [SerializeField]
- private int reactionLevel;
- private int levelColmun = 10;
- private float beforeInsertDepth;
- private bool reception;
- [SerializeField]
- private float receptionTime;
- private const float receptionTimeMax = 0.75f;
- private const int estrusLevel = 2;
- private const float insertStart = 0.3f;
- private const float insertEnd = 0.66f;
- [SerializeField]
- private float sliderMultiple = 1f;
- private UIButton buttonAuto;
- private Color buttonDefaultColor = default(Color);
- private UIButton buttonLevelUp;
- private UILabel labelLevel;
- public enum Mode
- {
- Non,
- Auto,
- Manual
- }
- }
|