SkillConfigLabel.cs 702 B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. public class SkillConfigLabel
  6. {
  7. public static string Pack = "Pack";
  8. public static string Skill = "Skill";
  9. public static string Ability = "Ability";
  10. public static string GetFullID(SkillType type, int id)
  11. {
  12. if (type == SkillType.Skill || type == SkillType.BigSkill)
  13. {
  14. return Skill + id;
  15. }
  16. else if (type == SkillType.Ability)
  17. {
  18. return Ability + id;
  19. }
  20. else if (type == SkillType.Pack)
  21. {
  22. return Pack + id;
  23. }
  24. else
  25. {
  26. throw new Exception();
  27. }
  28. }
  29. }