TouchActionParam.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. using System;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class TouchActionParam
  5. {
  6. public TouchActionParam()
  7. {
  8. this.TouchParam.Add(TouchActionParam.TouchType.セクハラ, new TouchActionParam.ActionParam());
  9. this.TouchParam.Add(TouchActionParam.TouchType.お邪魔, new TouchActionParam.ActionParam());
  10. }
  11. public bool DoTouchAction()
  12. {
  13. return this.TouchParam[TouchActionParam.TouchType.お邪魔].Point != 0 || this.TouchParam[TouchActionParam.TouchType.セクハラ].Point != 0;
  14. }
  15. public TouchActionParam.ActionParam NowUseParam
  16. {
  17. get
  18. {
  19. return this.TouchParam[this.NowSetType];
  20. }
  21. }
  22. public Transform m_VibeObj;
  23. public bool IsVibeOn;
  24. public bool IsVibeFirst;
  25. public AudioSourceMgr VibeAudio;
  26. public bool IsEventStart;
  27. public bool MotionFaceChange;
  28. public bool MotionFaceBlendChange;
  29. public Dictionary<TouchActionParam.TouchType, TouchActionParam.ActionParam> TouchParam = new Dictionary<TouchActionParam.TouchType, TouchActionParam.ActionParam>();
  30. public TouchActionParam.TouchType NowSetType;
  31. public enum TouchType
  32. {
  33. セクハラ,
  34. お邪魔
  35. }
  36. public class ActionParam
  37. {
  38. public float TouchTimer;
  39. public float NotTouchTimer;
  40. public int Point;
  41. public bool IsTouch;
  42. }
  43. }