Scriptum/Assets/Scripts/REFACTORING/Models/Shared/PrefabAssetModel.cs

23 lines
620 B
C#
Raw Normal View History

2022-11-06 21:34:17 +01:00
using System;
using UnityEngine;
[Serializable]
public class PrefabAssetModel
{
[SerializeField]
public string Name { get; set; }
[SerializeField]
public string PrefabAssetName { get; set; }
[SerializeField]
public Vector3 Position { get; set; }
public PrefabAssetModel() {}
public PrefabAssetModel(string _name, string _prefabAssetName, Vector3 _position)
{
Name = _name; // builded object local name (setuped e.g. by admin)
PrefabAssetName = _prefabAssetName; // builded object name in Assets/
Position = _position;
}
}