20 lines
495 B
C#
20 lines
495 B
C#
[System.Serializable]
|
|
public class CharacterAsset : AssetSpawnData
|
|
{
|
|
public string Category;
|
|
public string Id;
|
|
public string Costume;
|
|
public string AssetName;
|
|
|
|
public CharacterAsset(string assetName, string filePath)
|
|
{
|
|
var split = assetName.Split(new char[] { '_', '.' });
|
|
|
|
AssetType = AssetTypes.Character;
|
|
Category = split[1];
|
|
Id = split[2];
|
|
Costume = split[3];
|
|
AssetName = assetName;
|
|
FilePath = filePath;
|
|
}
|
|
} |