20 lines
489 B
C#
20 lines
489 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using BITKit;
|
|
using UnityEngine;
|
|
using UnityEngine.Animations;
|
|
|
|
namespace BITFALL.HotFix
|
|
{
|
|
public class PlayerSocketComponent : MonoBehaviour
|
|
{
|
|
[SerializeReference,SubclassSelector] private IReference reference;
|
|
public string Reference => reference.Value;
|
|
public void SetParent(Transform parent)
|
|
{
|
|
transform.SetPositionAndRotation(parent.position,parent.rotation);
|
|
transform.SetParentConstraint(parent);
|
|
}
|
|
}
|
|
}
|