BattleConfigMgr.cs 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. using UnityEngine;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using System;
  5. public class BattlePositionConfig
  6. {
  7. public Vector2[] positionInBlock = {
  8. new Vector2 (0, -2.5f),
  9. new Vector2 (0.375f, 0),
  10. new Vector2 (0.75f, 2.5f),
  11. new Vector2 (1.125f, -1.25f),
  12. new Vector2 (1.5f, 1.25f)
  13. };
  14. public float attackDistanceFront = 3.5f;
  15. public float attackDistanceMiddle = 6.5f;
  16. public float attackDistanceBack = 9.5f;
  17. public bool keepCenter = true;
  18. }
  19. public class ResourceBattlePositionConfig
  20. {
  21. public Vector2[] front = {
  22. new Vector2 (-2, 0),
  23. new Vector2 (-1.732f, -1),
  24. new Vector2 (-1.732f, 1),
  25. new Vector2 (-1, -1.732f),
  26. new Vector2 (-1, 1.732f)
  27. };
  28. public Vector2[] middle = {
  29. new Vector2 (-4, 0),
  30. new Vector2 (-3.464f, -2),
  31. new Vector2 (-3.464f, 2),
  32. new Vector2 (-2, -3.464f),
  33. new Vector2 (-2, 3.464f)
  34. };
  35. public Vector2[] back = {
  36. new Vector2 (-6, 0),
  37. new Vector2 (-5.796f, -3),
  38. new Vector2 (-5.796f, 3),
  39. new Vector2 (-3, -5.796f),
  40. new Vector2 (-3, 5.796f)
  41. };
  42. public Vector2[] enemy = {
  43. new Vector2 (0, 0),
  44. new Vector2 (0, 0),
  45. new Vector2 (0, 0),
  46. new Vector2 (0, 0),
  47. new Vector2 (0, 0),
  48. };
  49. }
  50. public class DropDownConfig
  51. {
  52. public float downEffectSpeedThreshold = 20f; //下落特效的速度阀值
  53. public int downEffect = 0; //下落特效
  54. public string downSound = ""; //下落音效
  55. public float downFloorEffectSpeedThreshold = 20f; //下落特效的速度阀值
  56. public int downFloorEffect = 0; //落地特效
  57. public string downFloorSound = "Audio_Ragati_Hit"; //落地音效
  58. public string beHurtDownFloorSound = "";
  59. public float shakeSpeedThreshold = 20f; //震动速度阀值
  60. public float shakeRate = 0.015f; // 速度 * Scale * Rate为震动幅度
  61. public float shakeTime = 0.5f; //震动时间
  62. public float shakeCycle = 0.2f; //震动周期
  63. public float autoStartDownSpeed = 15f; //下落初始速度
  64. }