projectEli/Assets/NeoFPS/Core/NeoSaveGames/Serialization/NeoSerializedGameObjectChildContainer.cs
2022-11-06 20:28:33 -05:00

29 lines
695 B
C#

using System;
using System.Collections.Generic;
using UnityEngine;
namespace NeoSaveGames.Serialization
{
[Serializable]
public class NeoSerializedGameObjectChildContainer : NeoSerializedGameObjectContainerBase
{
[SerializeField]
private NeoSerializedGameObject m_GameObject = null;
public override Transform rootTransform
{
get { return m_GameObject.transform; }
}
public override bool isValid
{
get { return m_GameObject != null; }
}
public NeoSerializedGameObjectChildContainer(NeoSerializedGameObject nsgo)
{
m_GameObject = nsgo;
}
}
}