add some extra assets FX and SFX
This commit is contained in:
28
Assets/PixPlays/Components/Scripts/BindingPoints.cs
Normal file
28
Assets/PixPlays/Components/Scripts/BindingPoints.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
namespace PixPlays.ElementalVFX
|
||||
{
|
||||
public class BindingPoints : MonoBehaviour
|
||||
{
|
||||
[System.Serializable]
|
||||
public class BindingPointData
|
||||
{
|
||||
public BindingPointType Type;
|
||||
public Transform Point;
|
||||
}
|
||||
|
||||
[SerializeField] private List<BindingPointData> _BindingPoints;
|
||||
|
||||
public Transform GetBindingPoint(BindingPointType type)
|
||||
{
|
||||
BindingPointData data = _BindingPoints.Find(x => x.Type == type);
|
||||
if (data != null)
|
||||
{
|
||||
return data.Point;
|
||||
}
|
||||
Debug.LogError($"Binding type {type.ToString()} not defined");
|
||||
return transform;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user