1
This commit is contained in:
19
Assets/Artists/Scripts/HotFix/PlayerSocketComponent.cs
Normal file
19
Assets/Artists/Scripts/HotFix/PlayerSocketComponent.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user