projectEli/Assets/NeoFPS/Core/MotionGraphs/MotionGraphDataBase.cs

30 lines
657 B
C#
Raw Normal View History

2022-11-07 01:28:33 +00:00
using UnityEngine;
namespace NeoFPS.CharacterMotion
{
public class MotionGraphDataBase : ScriptableObject, IMotionGraphElement
{
[SerializeField] private int m_DataID = -1;
public int dataID
{
get { return m_DataID; }
}
void OnValidate ()
{
if (m_DataID == -1)
m_DataID = GetInstanceID();
}
public void CheckReferences(IMotionGraphMap map) { }
public virtual void AddOverride(IMotionGraphDataOverride over)
{
}
public virtual void RemoveOverride(IMotionGraphDataOverride over)
{
}
}
}