23 lines
620 B
C#
23 lines
620 B
C#
|
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;
|
||
|
}
|
||
|
}
|