Skip to content

Instantly share code, notes, and snippets.

@Akadeax
Created August 19, 2024 14:50
Show Gist options
  • Save Akadeax/e4ffeccaf46c43f076736661d40fa3a6 to your computer and use it in GitHub Desktop.
Save Akadeax/e4ffeccaf46c43f076736661d40fa3a6 to your computer and use it in GitHub Desktop.
PDAnimatorState Template
[CreateAssetMenu(menuName = "PD/")]
public class XStateData : PDAnimatorStateData
{
//[Header("Animations")]
public override PDAnimatorState ConstructState(PDAnimator animator)
{
return new XState(stateName, this, animator);
}
}
public class XState : PDAnimatorState
{
new XStateData data;
PDAnimator animator;
public XState(string name, PDAnimatorStateData data, PDAnimator animator) : base(name, data)
{
this.data = data as XStateData;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment