CharacterPresetData.cs 847 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. [CreateAssetMenu(fileName = "Data", menuName = "ScriptableObjects/CharacterPreset", order = 1)]
  6. public class Characters : ScriptableObject
  7. {
  8. [SerializeField]
  9. public CharacterPreset[] characters;
  10. }
  11. [Serializable]
  12. public class CharacterPreset
  13. {
  14. public string name ;
  15. public int characterId ;
  16. }
  17. [Serializable]
  18. public class CharacterObjects
  19. {
  20. [SerializeField]public string name ;
  21. public int id;
  22. public GameObject[] body;
  23. public GameObject[] hair;
  24. public GameObject[] eyeWears;
  25. public GameObject[] tops;
  26. public GameObject[] gloves;
  27. public GameObject[] bottoms;
  28. public GameObject[] shoes;
  29. public CharacterObjects(int _id,string _characterName){
  30. id=_id;
  31. name = _characterName;
  32. }
  33. }