Files
BABA_YAGA/Assets/Invector-3rdPersonController/Basic Locomotion/Scripts/Generic/Utils/vSetParent.cs

22 lines
421 B
C#
Raw Normal View History

2026-05-30 09:16:35 +07:00
using UnityEngine;
namespace Invector.Utils
{
public class vSetParent : MonoBehaviour
{
public void RemoveParent()
{
transform.parent = null;
}
public void RemoveParent(Transform target)
{
target.parent = null;
}
public void SetParent(Transform parent)
{
transform.parent = parent;
}
}
}