projectEli/Assets/NeoFPS/Core/NeoSaveGames/Serialization/NeoSerializedGameObjectChildContainer.cs

29 lines
695 B
C#
Raw Normal View History

2022-11-07 01:28:33 +00:00
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;
}
}
}