zombie_mp/Assets/Scripts/Helpers/CharacterPresetData.cs

38 lines
847 B
C#

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;
}
}