29 lines
768 B
C#
29 lines
768 B
C#
using System;
|
|
using UnityEngine;
|
|
|
|
[Serializable]
|
|
public abstract class PrefabAssetModelData
|
|
{
|
|
[SerializeField] public string Name { get; set; }
|
|
|
|
[SerializeField] public string PrefabAssetName { get; set; }
|
|
|
|
[SerializeField] public float[] Position { get; set; }
|
|
|
|
|
|
public PrefabAssetModelData(PrefabAssetModel assetModel)
|
|
{
|
|
Name = assetModel.Name;
|
|
PrefabAssetName = assetModel.PrefabAssetName;
|
|
|
|
Position = new float[3];
|
|
Position[0] = assetModel.Position.x;
|
|
Position[1] = assetModel.Position.y;
|
|
Position[2] = assetModel.Position.z;
|
|
}
|
|
|
|
public abstract PrefabAssetModelData PrefabAssetModelToData(PrefabAssetModel assetModel);
|
|
|
|
public abstract PrefabAssetModel MapDataToPrefabAssetModel();
|
|
}
|