1234567891011121314151617181920212223242526272829303132333435363738 |
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- [CreateAssetMenu(fileName = "Data", menuName = "ScriptableObjects/CharacterPreset", order = 1)]
- public class Characters : ScriptableObject
- {
- [SerializeField]
- public CharacterPreset[] characters;
- }
- [Serializable]
- public class CharacterPreset
- {
- public string name ;
- public int characterId ;
- }
- [Serializable]
- public class CharacterObjects
- {
- [SerializeField]public string name ;
- public int id;
- public GameObject[] body;
- public GameObject[] hair;
- public GameObject[] eyeWears;
- public GameObject[] tops;
- public GameObject[] gloves;
- public GameObject[] bottoms;
- public GameObject[] shoes;
- public CharacterObjects(int _id,string _characterName){
- id=_id;
- name = _characterName;
- }
- }
|